completionId: cgen-24c5b9621ed54aad84c079627fbc1c61
cgen-24c5b9621ed54aad84c079627fbc1c61
This commit is contained in:
parent
82472654ab
commit
447d300eaf
1 changed files with 2 additions and 2 deletions
|
|
@ -310,10 +310,10 @@ export default async function handler(req: any, res: any) {
|
||||||
|
|
||||||
userId = userId_temp;
|
userId = userId_temp;
|
||||||
|
|
||||||
// Create user profile
|
// Create user profile if it doesn't exist
|
||||||
const { error: profileError } = await supabase
|
const { error: profileError } = await supabase
|
||||||
.from("user_profiles")
|
.from("user_profiles")
|
||||||
.insert({
|
.upsert({
|
||||||
id: userId,
|
id: userId,
|
||||||
email: discordUser.email,
|
email: discordUser.email,
|
||||||
full_name: discordUser.username,
|
full_name: discordUser.username,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue