From c47812c706795a94a33761dcc1351bd96c5b847f Mon Sep 17 00:00:00 2001 From: Regalijan Date: Thu, 6 Feb 2025 10:12:31 -0500 Subject: [PATCH] Fix report processed emails --- functions/api/reports/[id]/action.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/api/reports/[id]/action.ts b/functions/api/reports/[id]/action.ts index d65da79..ecf1932 100644 --- a/functions/api/reports/[id]/action.ts +++ b/functions/api/reports/[id]/action.ts @@ -76,12 +76,12 @@ export async function onRequestPost(context: RequestContext) { if (user?.email) await sendEmail( - user?.email, + user.email, context.env.MAILGUN_API_KEY, "Report Processed", "report_processed", { - username: report.user?.username as string, + username: user.username as string, }, ); else if (pushNotificationData)