From 79a4778c020879edeb15b50939233ea6ea7a1471 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Tue, 23 May 2023 23:49:52 +0530 Subject: [PATCH] fix: add uid in evt (#9066) * fix: add uid in evt Signed-off-by: Udit Takkar * fix: type error Signed-off-by: Udit Takkar * chore: fix type error Signed-off-by: Udit Takkar * fix: remove false from description Signed-off-by: Udit Takkar --------- Signed-off-by: Udit Takkar Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> --- packages/features/bookings/lib/handleNewBooking.ts | 3 +++ packages/lib/CalEventParser.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index 7b92d13c97..f09e7135b8 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -1486,6 +1486,9 @@ async function handler( * so if you modify it in a inner function it will be modified in the outer function * deep cloning evt to avoid this */ + if (!evt?.uid) { + evt.uid = booking?.uid ?? null; + } const copyEvent = cloneDeep(evt); copyEvent.uid = booking.uid; await sendScheduledSeatsEmails(copyEvent, invitee[0], newSeat, !!eventType.seatsShowAttendees); diff --git a/packages/lib/CalEventParser.ts b/packages/lib/CalEventParser.ts index ff76988e9f..fe1638afab 100644 --- a/packages/lib/CalEventParser.ts +++ b/packages/lib/CalEventParser.ts @@ -194,7 +194,7 @@ ${getAppsStatus(calEvent, t)} ${ // TODO: Only the original attendee can make changes to the event // Guests cannot - !calEvent.seatsPerTimeSlot && getManageLink(calEvent, t) + calEvent.seatsPerTimeSlot ? "" : getManageLink(calEvent, t) } ${ calEvent.paymentInfo