Scheduling infrastructure for absolutely everyone.
fix: Rescheduling email when there is broken calendar integration (#15669)
Hariom Balharaad61d48706d9
diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.tsindex b17e66745da..6888de8adba 100644--- a/packages/features/bookings/lib/handleNewBooking.ts+++ b/packages/features/bookings/lib/handleNewBooking.ts@@ -1268,8 +1268,7 @@ async function handler(evt.appsStatus = handleAppsStatus(results, booking, reqAppsStatus);- // If there is an integration error, we don't send successful rescheduling email, instead broken integration email should be sent that are handled by either CalendarManager or videoClient- if (noEmail !== true && isConfirmedByDefault && !isThereAnIntegrationError) {+ if (noEmail !== true && isConfirmedByDefault) {const copyEvent = cloneDeep(evt);const copyEventAdditionalInfo = {...copyEvent,diff --git a/packages/features/bookings/lib/handleNewBooking/test/reschedule.test.ts b/packages/features/bookings/lib/handleNewBooking/test/reschedule.test.tsindex 080d42d7de6..6575e11f877 100644--- a/packages/features/bookings/lib/handleNewBooking/test/reschedule.test.ts+++ b/packages/features/bookings/lib/handleNewBooking/test/reschedule.test.ts@@ -660,8 +660,11 @@ describe("handleNewBooking", () => {expectWorkflowToBeTriggered({ emailsToReceive: [organizer.email], emails });- // FIXME: We should send Broken Integration emails on calendar event updation failure- // expectBrokenIntegrationEmails({ booker, organizer, emails });+ expectSuccessfulBookingRescheduledEmails({+ booker,+ organizer,+ emails,+ });expectBookingRescheduledWebhookToHaveBeenFired({booker,