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

Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
Amit Sharma
2024-04-02 12:42:48 +00:00
committed by GitHub
co-authored by Udit Takkar
parent a7e05aa016
commit a03ae81509
@@ -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,