From b8b5cf3f21f916ad6abcb99d9156f3cd4d0b7618 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Fri, 23 Aug 2024 01:21:57 -0400 Subject: [PATCH] oops --- functions/api/inactivity/[id].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();