fix: include eventTypeId in BOOKING_CANCELLED event (#12445)

This commit is contained in:
Matt Nicolls 2023-11-22 13:04:51 +01:00 committed by GitHub
parent 2853288f49
commit 9a6683e01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,6 +227,7 @@ async function handler(req: CustomRequest) {
type: bookingToDelete?.eventType?.slug as string,
description: bookingToDelete?.description || "",
customInputs: isPrismaObjOrUndefined(bookingToDelete.customInputs),
eventTypeId: bookingToDelete.eventTypeId as number,
...getCalEventResponses({
bookingFields: bookingToDelete.eventType?.bookingFields ?? null,
booking: bookingToDelete,