fix: seated event bug (#26929)
* fix: seated event bug * fix * add tests * fix type error * small tweak --------- Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
6 files changed
+343
-1
No files matched your search
@@ -244,16 +244,18 @@ export const sendRoundRobinRescheduledEmailsAndSMS = async (
|
||||
export const sendReassignedUpdatedEmailsAndSMS = async ({
|
||||
calEvent,
|
||||
eventTypeMetadata,
|
||||
showAttendees,
|
||||
}: {
|
||||
calEvent: CalendarEvent;
|
||||
eventTypeMetadata?: EventTypeMetadata;
|
||||
showAttendees: boolean;
|
||||
}) => {
|
||||
const organizationSettings = await fetchOrganizationEmailSettings(calEvent.organizationId);
|
||||
if (shouldSkipAttendeeEmailWithSettings(eventTypeMetadata, organizationSettings, EmailType.REASSIGNED))
|
||||
return;
|
||||
|
||||
const emailsToSend = calEvent.attendees.map((attendee) =>
|
||||
sendEmail(() => new AttendeeUpdatedEmail(calEvent, attendee))
|
||||
sendEmail(() => new AttendeeUpdatedEmail(calEvent, attendee, showAttendees))
|
||||
);
|
||||
|
||||
await Promise.all(emailsToSend);
|
||||
|
||||
Reference in new issue
Block a user