File tree 2 files changed +2
-1
lines changed
trpc/server/routers/publicViewer
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export type BookingNoShowUpdatedPayload = {
36
36
} ;
37
37
38
38
export type WebhookDataType = CalendarEvent &
39
- BookingNoShowUpdatedPayload &
39
+ // BookingNoShowUpdatedPayload & // This breaks all other webhooks
40
40
EventTypeInfo & {
41
41
metadata ?: { [ key : string ] : string | number | boolean | null } ;
42
42
bookingId ?: number ;
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export const noShowHandler = async ({ input }: NoShowOptions) => {
86
86
orgId,
87
87
triggerEvent : WebhookTriggerEvents . BOOKING_NO_SHOW_UPDATED ,
88
88
} ) ;
89
+ // @ts -expect-error payload is too booking specific, we need to refactor this
89
90
await webhooks . sendPayload ( { ...payload , bookingUid } ) ;
90
91
return payload ;
91
92
}
You can’t perform that action at this time.
0 commit comments