Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Flip arguments
  • Loading branch information
regalijan committed Oct 26, 2023
1 parent 9e97137 commit a4eaead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/inactivity/[id].ts
Expand Up @@ -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) {
Expand Down

0 comments on commit a4eaead

Please sign in to comment.