feat: add iCalSequence to new booking data (#22899)

* feat: add iCalSequence to new booking data

* fix: update iCalSequence logic for rescheduled bookings

* Update createBooking.ts

---------

Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
Devanshu Sharma
2025-09-02 11:57:59 +00:00
committed by GitHub
co-authored by Anik Dhabal Babu
parent 39490b6883
commit d125064430
@@ -249,6 +249,7 @@ function buildNewBookingData(params: CreateBookingParams) {
dynamicEventSlugRef: !eventType.id ? eventType.slug : null,
dynamicGroupSlugRef: !eventType.id ? (reqBody.user as string).toLowerCase() : null,
iCalUID: evt.iCalUID ?? "",
iCalSequence: originalRescheduledBooking ? evt.iCalSequence || 1 : 0,
user: {
connect: {
id: eventType.organizerUser.id,