fix: type in webhook payload (#15912)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
co-authored by
CarinaWolli
parent
9947b5ec85
commit
4d0b417925
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user