fix: wrong info on cancelled email (#21085)

This commit is contained in:
Anik Dhabal Babu
2025-05-02 17:19:19 +00:00
committed by GitHub
parent 0f0c2b8b92
commit 42a6903057
2 changed files with 3 additions and 2 deletions
@@ -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 && (
@@ -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({