fix: type in webhook payload (#15912)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
9947b5ec85
commit
4d0b417925
2 files changed
+2
-2
No files matched your search
@@ -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