Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix report processed emails
  • Loading branch information
regalijan committed Feb 6, 2025
1 parent cf90ebb commit c47812c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/reports/[id]/action.ts
Expand Up @@ -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)
Expand Down

0 comments on commit c47812c

Please sign in to comment.