Delete FCM token from KV on appeal action

This commit is contained in:
2023-10-19 16:51:20 -04:00
parent e2d1739656
commit 53b05e2bdd
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,9 @@ export async function onRequestPost(context: RequestContext) {
const { current_user: currentUser } = context.data;
delete appeal.user.email;
delete appeal.fcm_token;
await fetch(context.env.APPEALS_WEBHOOK, {
body: JSON.stringify({
embeds: [