Flip arguments
This commit is contained in:
parent
9e971375cd
commit
a4eaead08d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user