Skip to content

Commit 79a4778

Browse files
fix: add uid in evt (#9066)
* fix: add uid in evt Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> * fix: type error Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> * chore: fix type error Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> * fix: remove false from description Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> --------- Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
1 parent 0445701 commit 79a4778

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/features/bookings/lib/handleNewBooking.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,9 @@ async function handler(
14861486
* so if you modify it in a inner function it will be modified in the outer function
14871487
* deep cloning evt to avoid this
14881488
*/
1489+
if (!evt?.uid) {
1490+
evt.uid = booking?.uid ?? null;
1491+
}
14891492
const copyEvent = cloneDeep(evt);
14901493
copyEvent.uid = booking.uid;
14911494
await sendScheduledSeatsEmails(copyEvent, invitee[0], newSeat, !!eventType.seatsShowAttendees);

packages/lib/CalEventParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ ${getAppsStatus(calEvent, t)}
194194
${
195195
// TODO: Only the original attendee can make changes to the event
196196
// Guests cannot
197-
!calEvent.seatsPerTimeSlot && getManageLink(calEvent, t)
197+
calEvent.seatsPerTimeSlot ? "" : getManageLink(calEvent, t)
198198
}
199199
${
200200
calEvent.paymentInfo

0 commit comments

Comments
 (0)