diff --git a/functions/api/inactivity/[id].ts b/functions/api/inactivity/[id].ts index e7ee18e..41d24a2 100644 --- a/functions/api/inactivity/[id].ts +++ b/functions/api/inactivity/[id].ts @@ -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();