Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
regalijan committed Aug 23, 2024
1 parent 40707d1 commit b8b5cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/inactivity/[id].ts
Expand Up @@ -69,7 +69,7 @@ export async function onRequestPost(context: RequestContext) {
const applicableDepartments = JSON.parse(requestedNotice.departments).length;

await context.env.D1.prepare(
"UPDATE inactivity_notices SET decisions = ?, user = json_remove(user, '*.email') WHERE id = ?;",
"UPDATE inactivity_notices SET decisions = ?, user = json_remove(user, '$.email') WHERE id = ?;",
)
.bind(JSON.stringify(decisions), context.params.id)
.run();
Expand Down

0 comments on commit b8b5cf3

Please sign in to comment.