add organizer as reply-to email (#5203)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-10-27 07:05:11 +00:00
1 parent 888f60a94c
commit 4d04a4d9a6
2 files changed
+3

No files matched your search

@@ -154,6 +154,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
html: emailContent.emailBody.html,
batchId: batchId,
sendAt: dayjs(reminder.scheduledDate).unix(),
replyTo: reminder.booking?.user?.email || senderEmail,
});
await prisma.workflowReminder.update({
@@ -130,6 +130,7 @@ export const scheduleEmailReminder = async (
text: emailContent.emailBody.text,
html: emailContent.emailBody.html,
batchId: batchIdResponse[1].batch_id,
replyTo: evt.organizer.email,
});
} catch (error) {
console.log("Error sending Email");
@@ -154,6 +155,7 @@ export const scheduleEmailReminder = async (
html: emailContent.emailBody.html,
batchId: batchIdResponse[1].batch_id,
sendAt: scheduledDate.unix(),
replyTo: evt.organizer.email,
});
await prisma.workflowReminder.create({