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

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Amit SharmaandUdit Takkar authored and GitHub committed 2024-04-02 12:42:48 +00:00
1 parent a7e05aa016
commit a03ae81509
1 file changed
+1 -1
@@ -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,