Skip to content

Scheduling infrastructure for absolutely everyone.

fix: cancellation seems to be using slug instead of title (#14195)

Amit Sharmaa03ae8150917
diff --git a/packages/features/bookings/lib/handleCancelBooking.ts b/packages/features/bookings/lib/handleCancelBooking.ts
index 197cd030e6d..0a135f5af6a 100644
--- a/packages/features/bookings/lib/handleCancelBooking.ts
+++ b/packages/features/bookings/lib/handleCancelBooking.ts
@@ -231,7 +231,7 @@ async function handler(req: CustomRequest) {
const evt: CalendarEvent = {
title: bookingToDelete?.title,
- type: bookingToDelete?.eventType?.slug as string,
+ type: bookingToDelete?.eventType?.title as string,
description: bookingToDelete?.description || "",
customInputs: isPrismaObjOrUndefined(bookingToDelete.customInputs),
eventTypeId: bookingToDelete.eventTypeId as number,