Skip to content

Commit 80d95a0

Browse files
committed
Type fixes
1 parent 1a1643e commit 80d95a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/features/webhooks/lib/sendPayload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export type BookingNoShowUpdatedPayload = {
3636
};
3737

3838
export type WebhookDataType = CalendarEvent &
39-
BookingNoShowUpdatedPayload &
39+
// BookingNoShowUpdatedPayload & // This breaks all other webhooks
4040
EventTypeInfo & {
4141
metadata?: { [key: string]: string | number | boolean | null };
4242
bookingId?: number;

packages/trpc/server/routers/publicViewer/noShow.handler.ts

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const noShowHandler = async ({ input }: NoShowOptions) => {
8686
orgId,
8787
triggerEvent: WebhookTriggerEvents.BOOKING_NO_SHOW_UPDATED,
8888
});
89+
// @ts-expect-error payload is too booking specific, we need to refactor this
8990
await webhooks.sendPayload({ ...payload, bookingUid });
9091
return payload;
9192
}

0 commit comments

Comments
 (0)