Skip to content

Commit 0cc199c

Browse files
committed
next/set-email-address: syntax error SQL
1 parent 932007a commit 0cc199c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/server/accounts/set-email-address.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default async function setEmailAddress(
7272
// user has no password set, so we can set it – but not the email address
7373
if (!password_hash) {
7474
await pool.query(
75-
"UPDATE accounts SET password_hash=$1, WHERE account_id=$2",
75+
"UPDATE accounts SET password_hash=$1 WHERE account_id=$2",
7676
[passwordHash(password), account_id]
7777
);
7878
}

0 commit comments

Comments
 (0)