Scheduling infrastructure for absolutely everyone.
fix: don't send reassingment email to attendee for past events (#18173)
Carina Wollendorfer376961f30d9a
diff --git a/packages/features/ee/round-robin/roundRobinManualReassignment.ts b/packages/features/ee/round-robin/roundRobinManualReassignment.tsindex d1ef0efbd29..363c4edba7c 100644--- a/packages/features/ee/round-robin/roundRobinManualReassignment.ts+++ b/packages/features/ee/round-robin/roundRobinManualReassignment.ts@@ -346,7 +346,7 @@ export const roundRobinManualReassignment = async ({}if (hasOrganizerChanged) {- if (emailsEnabled) {+ if (emailsEnabled && dayjs(evt.startTime).isAfter(dayjs())) {// send email with event updates to attendeesawait sendRoundRobinUpdatedEmailsAndSMS({calEvent: evtWithoutCancellationReason,diff --git a/packages/features/ee/round-robin/roundRobinReassignment.ts b/packages/features/ee/round-robin/roundRobinReassignment.tsindex c832f4bb694..f3190d9c42c 100644--- a/packages/features/ee/round-robin/roundRobinReassignment.ts+++ b/packages/features/ee/round-robin/roundRobinReassignment.ts@@ -396,7 +396,7 @@ export const roundRobinReassignment = async ({// Handle changing workflows with organizerif (hasOrganizerChanged) {- if (emailsEnabled) {+ if (emailsEnabled && dayjs(evt.startTime).isAfter(dayjs())) {// send email with event updates to attendeesawait sendRoundRobinUpdatedEmailsAndSMS({calEvent: evtWithoutCancellationReason,