Skip to content

Scheduling infrastructure for absolutely everyone.

fix: wrong info on cancelled email (#21085)

Anik Dhabal Babu42a690305759
diff --git a/packages/emails/src/templates/BaseScheduledEmail.tsx b/packages/emails/src/templates/BaseScheduledEmail.tsx
index 14be1911c55..32ef6ea7bc4 100644
--- a/packages/emails/src/templates/BaseScheduledEmail.tsx
+++ b/packages/emails/src/templates/BaseScheduledEmail.tsx
@@ -105,7 +105,7 @@ export const BaseScheduledEmail = (
<WhoInfo calEvent={props.calEvent} t={t} />
<LocationInfo calEvent={props.calEvent} t={t} />
<Info label={t("description")} description={props.calEvent.description} withSpacer formatted />
- <Info label={t("additional_notes")} description={props.calEvent.additionalNotes} withSpacer />
+ <Info label={t("additional_notes")} description={props.calEvent.additionalNotes} withSpacer formatted />
{props.includeAppsStatus && <AppsStatus calEvent={props.calEvent} t={t} />}
<UserFieldsResponses t={t} calEvent={props.calEvent} isOrganizer={props.isOrganizer} />
{props.calEvent.paymentInfo?.amount && (
diff --git a/packages/features/bookings/lib/handleCancelBooking.ts b/packages/features/bookings/lib/handleCancelBooking.ts
index fd953d6c4d7..73c7e80eda4 100644
--- a/packages/features/bookings/lib/handleCancelBooking.ts
+++ b/packages/features/bookings/lib/handleCancelBooking.ts
@@ -218,7 +218,8 @@ async function handler(input: CancelBookingInput) {
title: bookingToDelete?.title,
length: bookingToDelete?.eventType?.length,
type: bookingToDelete?.eventType?.slug as string,
- description: bookingToDelete?.description || "",
+ additionalNotes: bookingToDelete?.description,
+ description: bookingToDelete.eventType?.description,
customInputs: isPrismaObjOrUndefined(bookingToDelete.customInputs),
eventTypeId: bookingToDelete.eventTypeId as number,
...getCalEventResponses({