Skip to content

Commit

Permalink
fix: user data update
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokeyibb committed Sep 11, 2024
1 parent 8014c34 commit c8b717f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare-workers/src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function registerUser(

await db
.prepare(
'INSERT INTO commenters (name, oauth_provider, oauth_user_id, avatar_url, profile_url) VALUES (?, ?, ?, ?, ?) ON CONFLICT(oauth_provider, oauth_user_id) DO UPDATE SET name = excluded.name',
'INSERT INTO commenters (name, oauth_provider, oauth_user_id, avatar_url, profile_url) VALUES (?, ?, ?, ?, ?) ON CONFLICT(oauth_provider, oauth_user_id) DO UPDATE SET name = excluded.name, avatar_url = excluded.avatar_url, profile_url = excluded.profile_url',
)
.bind(name, oauth_provider, oauth_user_id, avatar_url, profile_url)
.run();
Expand Down

0 comments on commit c8b717f

Please sign in to comment.