feat: Adds missing bookingId to Cancel Webhook payload (#11906)
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>pull/11936/head^2
parent
225055fb0c
commit
91ac952a72
|
@ -102,6 +102,7 @@ async function getBookingToDelete(id: number | undefined, uid: string | undefine
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
uid: true,
|
uid: true,
|
||||||
|
id: true,
|
||||||
eventTypeId: true,
|
eventTypeId: true,
|
||||||
destinationCalendar: true,
|
destinationCalendar: true,
|
||||||
smsReminderNumber: true,
|
smsReminderNumber: true,
|
||||||
|
@ -245,6 +246,7 @@ async function handler(req: CustomRequest) {
|
||||||
},
|
},
|
||||||
attendees: attendeesList,
|
attendees: attendeesList,
|
||||||
uid: bookingToDelete?.uid,
|
uid: bookingToDelete?.uid,
|
||||||
|
bookingId: bookingToDelete?.id,
|
||||||
/* Include recurringEvent information only when cancelling all bookings */
|
/* Include recurringEvent information only when cancelling all bookings */
|
||||||
recurringEvent: allRemainingBookings
|
recurringEvent: allRemainingBookings
|
||||||
? parseRecurringEvent(bookingToDelete.eventType?.recurringEvent)
|
? parseRecurringEvent(bookingToDelete.eventType?.recurringEvent)
|
||||||
|
|
|
@ -166,6 +166,7 @@ export interface CalendarEvent {
|
||||||
conferenceData?: ConferenceData;
|
conferenceData?: ConferenceData;
|
||||||
additionalInformation?: AdditionalInformation;
|
additionalInformation?: AdditionalInformation;
|
||||||
uid?: string | null;
|
uid?: string | null;
|
||||||
|
bookingId?: number;
|
||||||
videoCallData?: VideoCallData;
|
videoCallData?: VideoCallData;
|
||||||
paymentInfo?: PaymentInfo | null;
|
paymentInfo?: PaymentInfo | null;
|
||||||
requiresConfirmation?: boolean | null;
|
requiresConfirmation?: boolean | null;
|
||||||
|
|
Loading…
Reference in New Issue