Flip arguments

This commit is contained in:
Regalijan 2023-10-26 11:09:02 -04:00
parent 9e971375cd
commit a4eaead08d
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -72,7 +72,7 @@ export async function onRequestPost(context: RequestContext) {
await context.env.D1.prepare(
"UPDATE inactivity_notices SET approved = ?, open = 0 WHERE id = ?;",
)
.bind(context.params.id, Number(approved))
.bind(Number(approved), context.params.id)
.run();
if (requestedNotice.fcm_token) {