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:
authored and GitHub committed 2026-01-16 13:29:25 +00:00
1 parent c297c7704e
commit 9affeef99e
6 files changed
+343 -1

No files matched your search

+3 -1
View File
@@ -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);