When rescheduling, keep same iCalUID as original booking

write-icaluid-to-booking
Joe Au-Yeung 2023-10-27 13:54:49 -04:00
parent 25b83c3978
commit 757c878200
1 changed files with 1 additions and 1 deletions

View File

@ -1099,7 +1099,7 @@ async function handler(
const calEventUserFieldsResponses = const calEventUserFieldsResponses =
"calEventUserFieldsResponses" in reqBody ? reqBody.calEventUserFieldsResponses : null; "calEventUserFieldsResponses" in reqBody ? reqBody.calEventUserFieldsResponses : null;
const iCalUID = `${uid}@cal.com`; const iCalUID = rescheduleUid ? originalRescheduledBooking?.iCalUID : `${uid}@cal.com`;
let evt: CalendarEvent = { let evt: CalendarEvent = {
bookerUrl: await getBookerUrl(organizerUser), bookerUrl: await getBookerUrl(organizerUser),