fix: type in webhook payload (#15912)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina Wollendorfer
2024-07-29 13:48:45 +00:00
committed by GitHub
co-authored by CarinaWolli
parent 9947b5ec85
commit 4d0b417925
2 changed files with 2 additions and 2 deletions
@@ -270,7 +270,7 @@ async function handler(req: CustomRequest) {
const evt: CalendarEvent = {
title: bookingToDelete?.title,
type: bookingToDelete?.eventType?.title as string,
type: bookingToDelete?.eventType?.slug as string,
description: bookingToDelete?.description || "",
customInputs: isPrismaObjOrUndefined(bookingToDelete.customInputs),
eventTypeId: bookingToDelete.eventTypeId as number,
@@ -77,7 +77,7 @@ export const paymentsRouter = router({
const attendeesList = await Promise.all(attendeesListPromises);
const evt: CalendarEvent = {
type: (booking?.eventType?.title as string) || booking?.title,
type: booking?.eventType?.slug as string,
title: booking.title,
startTime: dayjs(booking.startTime).format(),
endTime: dayjs(booking.endTime).format(),