fix: update discord avatar on login
This commit is contained in:
parent
4fee40921e
commit
be998b1959
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export const GET: RequestHandler = async ({ platform, url, cookies, fetch }) =>
|
|||
|
||||
await db
|
||||
.prepare(
|
||||
"INSERT INTO user(id, name, avatar_hash) VALUES (?, ?, ?) ON CONFLICT(id) DO UPDATE SET name=excluded.name;",
|
||||
"INSERT INTO user(id, name, avatar_hash) VALUES (?, ?, ?) ON CONFLICT(id) DO UPDATE SET name=excluded.name, avatar_hash=excluded.avatar_hash;",
|
||||
)
|
||||
.bind(discordUser.id, discordUser.username, discordUser.avatar)
|
||||
.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue