fix: hide notes (#22061)

* fix: hide notes

* test: re-enable confirmHandler tests and add tests for hide notes fix

* fix: replace deprecated getDate with hardcoded dates for timezone safety

* fix: hide notes test

* refactor: move test from trpc to web package

---------

Co-authored-by: Kartik Saini <[email protected]>
Co-authored-by: supalarry <[email protected]>
Co-authored-by: Lauris Skraucis <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-09-10 10:51:41 +01:00
1 parent ba50268634
commit d30d2792cd
3 files changed
+115 -1

No files matched your search

@@ -200,4 +200,4 @@ describe.skip("confirmHandler", () => {
expect(res?.status).toBe(BookingStatus.REJECTED);
expectWorkflowToBeTriggered({ emailsToReceive: [organizer.email], emails });
});
});
});
@@ -85,6 +85,8 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {
price: true,
bookingFields: true,
hideOrganizerEmail: true,
hideCalendarNotes: true,
hideCalendarEventDetails: true,
disableGuests: true,
customReplyToEmail: true,
metadata: true,
@@ -233,6 +235,8 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {
: [],
requiresConfirmation: booking?.eventType?.requiresConfirmation ?? false,
hideOrganizerEmail: booking.eventType?.hideOrganizerEmail,
hideCalendarNotes: booking.eventType?.hideCalendarNotes,
hideCalendarEventDetails: booking.eventType?.hideCalendarEventDetails,
eventTypeId: booking.eventType?.id,
customReplyToEmail: booking.eventType?.customReplyToEmail,
team: !!booking.eventType?.team