From 7df177d75cc1260bc202c427d4d568c40479214a Mon Sep 17 00:00:00 2001 From: regalijan Date: Fri, 20 Oct 2023 14:00:29 -0400 Subject: [PATCH] Delete FCM token on inactivity closure --- functions/api/inactivity/[id].ts | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/api/inactivity/[id].ts b/functions/api/inactivity/[id].ts index b2040bb..0a1a74d 100644 --- a/functions/api/inactivity/[id].ts +++ b/functions/api/inactivity/[id].ts @@ -94,6 +94,7 @@ export async function onRequestPost(context: RequestContext) { ); } + delete requestedNotice.fcm_token; delete requestedNotice.user.email; }