Flip arguments
This commit is contained in:
@ -72,7 +72,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
await context.env.D1.prepare(
|
await context.env.D1.prepare(
|
||||||
"UPDATE inactivity_notices SET approved = ?, open = 0 WHERE id = ?;",
|
"UPDATE inactivity_notices SET approved = ?, open = 0 WHERE id = ?;",
|
||||||
)
|
)
|
||||||
.bind(context.params.id, Number(approved))
|
.bind(Number(approved), context.params.id)
|
||||||
.run();
|
.run();
|
||||||
|
|
||||||
if (requestedNotice.fcm_token) {
|
if (requestedNotice.fcm_token) {
|
||||||
|
Reference in New Issue
Block a user