From aa3d74c4adb8aa1ac9d25909820c92ae1ecfb26e Mon Sep 17 00:00:00 2001
From: regalijan <r@regalijan.com>
Date: Thu, 19 Oct 2023 17:26:37 -0400
Subject: [PATCH] Send FCM token in reports

---
 functions/api/reports/[id]/action.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/functions/api/reports/[id]/action.ts b/functions/api/reports/[id]/action.ts
index b4ed1f9..f91e859 100644
--- a/functions/api/reports/[id]/action.ts
+++ b/functions/api/reports/[id]/action.ts
@@ -59,6 +59,7 @@ export async function onRequestPost(context: RequestContext) {
       context.env,
       "Report Processed",
       `Your report for ${reportData.target_usernames.toString()} has been reviewed.`,
+      reportData.fcm_token,
     );
 
   delete reportData.fcm_token;