Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Duplicate calendar event when a guest is added (#22247)

Anik Dhabal Babuf40a1c92ef3d
diff --git a/packages/trpc/server/routers/viewer/bookings/addGuests.handler.ts b/packages/trpc/server/routers/viewer/bookings/addGuests.handler.ts
index c6077fba63b..88aff4e1fcf 100644
--- a/packages/trpc/server/routers/viewer/bookings/addGuests.handler.ts
+++ b/packages/trpc/server/routers/viewer/bookings/addGuests.handler.ts
@@ -136,6 +136,7 @@ export const addGuestsHandler = async ({ ctx, input }: AddGuestsOptions) => {
hideOrganizerEmail: booking.eventType?.hideOrganizerEmail,
attendees: attendeesList,
uid: booking.uid,
+ iCalUID: booking.iCalUID,
recurringEvent: parseRecurringEvent(booking.eventType?.recurringEvent),
location: booking.location,
destinationCalendar: booking?.destinationCalendar