feat: Add consistent iCalUID (#12122)

Co-authored-by: Hariom <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-12-15 10:28:32 -05:00
1 parent 0e8ac7e4ed
commit 9dfa596e3e
33 files changed
+568 -195

No files matched your search

@@ -65,6 +65,7 @@ export const requestRescheduleHandler = async ({ ctx, input }: RequestReschedule
scheduledJobs: true,
workflowReminders: true,
responses: true,
iCalUID: true,
},
where: {
uid: bookingId,
@@ -186,6 +187,7 @@ export const requestRescheduleHandler = async ({ ctx, input }: RequestReschedule
tAttendees
),
organizer: userAsPeopleType,
iCalUID: bookingToReschedule.iCalUID,
});
const director = new CalendarEventDirector();
@@ -257,6 +259,7 @@ export const requestRescheduleHandler = async ({ ctx, input }: RequestReschedule
? [bookingToReschedule?.destinationCalendar]
: [],
cancellationReason: `Please reschedule. ${cancellationReason}`, // TODO::Add i18-next for this
iCalUID: bookingToReschedule?.iCalUID,
};
// Send webhook