Scheduling infrastructure for absolutely everyone.
fix: set event type description correctly in the confirmation mail (#28827)
Bandhan Majumder810ad0edb8fc
diff --git a/packages/trpc/server/routers/viewer/bookings/confirm.handler.ts b/packages/trpc/server/routers/viewer/bookings/confirm.handler.tsindex b33c42536c0..32ffc1b6d88 100644--- a/packages/trpc/server/routers/viewer/bookings/confirm.handler.ts+++ b/packages/trpc/server/routers/viewer/bookings/confirm.handler.ts@@ -233,7 +233,7 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {const evt: CalendarEvent = {type: booking?.eventType?.slug as string,title: booking.title,- description: booking.description,+ description: booking.eventType?.description ?? null,bookerUrl,// TODO: Remove the usage of `bookingFields` in computing responses. We can do that by storing `label` with the response. Also, this would allow us to correctly show the label for a field even after the Event Type has been deleted....getCalEventResponses({