feat: Adds missing bookingId to Cancel Webhook payload (#11906)

Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
This commit is contained in:
Manpreet Singh 2023-10-17 05:02:35 -04:00 committed by GitHub
parent 225055fb0c
commit 91ac952a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,7 @@ async function getBookingToDelete(id: number | undefined, uid: string | undefine
},
},
uid: true,
id: true,
eventTypeId: true,
destinationCalendar: true,
smsReminderNumber: true,
@ -245,6 +246,7 @@ async function handler(req: CustomRequest) {
},
attendees: attendeesList,
uid: bookingToDelete?.uid,
bookingId: bookingToDelete?.id,
/* Include recurringEvent information only when cancelling all bookings */
recurringEvent: allRemainingBookings
? parseRecurringEvent(bookingToDelete.eventType?.recurringEvent)

View File

@ -166,6 +166,7 @@ export interface CalendarEvent {
conferenceData?: ConferenceData;
additionalInformation?: AdditionalInformation;
uid?: string | null;
bookingId?: number;
videoCallData?: VideoCallData;
paymentInfo?: PaymentInfo | null;
requiresConfirmation?: boolean | null;