Fix report processed emails
This commit is contained in:
parent
cf90ebb47f
commit
c47812c706
@ -76,12 +76,12 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
|
|
||||||
if (user?.email)
|
if (user?.email)
|
||||||
await sendEmail(
|
await sendEmail(
|
||||||
user?.email,
|
user.email,
|
||||||
context.env.MAILGUN_API_KEY,
|
context.env.MAILGUN_API_KEY,
|
||||||
"Report Processed",
|
"Report Processed",
|
||||||
"report_processed",
|
"report_processed",
|
||||||
{
|
{
|
||||||
username: report.user?.username as string,
|
username: user.username as string,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
else if (pushNotificationData)
|
else if (pushNotificationData)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user