From c8b717fd6bb2b8ae6903b49777dc4c9a272b52a1 Mon Sep 17 00:00:00 2001 From: shaokeyibb Date: Wed, 11 Sep 2024 22:08:19 +0800 Subject: [PATCH] fix: user data update --- cloudflare-workers/src/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare-workers/src/db.ts b/cloudflare-workers/src/db.ts index 1a94f1a6..ae81226e 100644 --- a/cloudflare-workers/src/db.ts +++ b/cloudflare-workers/src/db.ts @@ -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();