completionId: cgen-24c5b9621ed54aad84c079627fbc1c61

cgen-24c5b9621ed54aad84c079627fbc1c61
This commit is contained in:
Builder.io 2025-11-10 21:56:04 +00:00
parent 82472654ab
commit 447d300eaf

View file

@ -310,10 +310,10 @@ export default async function handler(req: any, res: any) {
userId = userId_temp;
// Create user profile
// Create user profile if it doesn't exist
const { error: profileError } = await supabase
.from("user_profiles")
.insert({
.upsert({
id: userId,
email: discordUser.email,
full_name: discordUser.username,