@@ -1052,7 +1052,7 @@ async function handler(
1052
1052
await sendRescheduledEmails ( {
1053
1053
...copyEvent ,
1054
1054
additionalNotes, // Resets back to the additionalNote input and not the override value
1055
- cancellationReason : "$RCH$" + rescheduleReason , // Removable code prefix to differentiate cancellation from rescheduling for email
1055
+ cancellationReason : "$RCH$" + rescheduleReason ? rescheduleReason : "" , // Removable code prefix to differentiate cancellation from rescheduling for email
1056
1056
} ) ;
1057
1057
}
1058
1058
const resultBooking = await resultBookingQuery ( newBooking . id ) ;
@@ -1157,7 +1157,7 @@ async function handler(
1157
1157
await sendRescheduledEmails ( {
1158
1158
...copyEvent ,
1159
1159
additionalNotes, // Resets back to the additionalNote input and not the override value
1160
- cancellationReason : "$RCH$" + rescheduleReason , // Removable code prefix to differentiate cancellation from rescheduling for email
1160
+ cancellationReason : "$RCH$" + rescheduleReason ? rescheduleReason : "" , // Removable code prefix to differentiate cancellation from rescheduling for email
1161
1161
} ) ;
1162
1162
1163
1163
// Delete the old booking
@@ -1678,7 +1678,7 @@ async function handler(
1678
1678
...copyEvent ,
1679
1679
additionalInformation : metadata ,
1680
1680
additionalNotes, // Resets back to the additionalNote input and not the override value
1681
- cancellationReason : "$RCH$" + rescheduleReason , // Removable code prefix to differentiate cancellation from rescheduling for email
1681
+ cancellationReason : "$RCH$" + rescheduleReason ? rescheduleReason : "" , // Removable code prefix to differentiate cancellation from rescheduling for email
1682
1682
} ) ;
1683
1683
}
1684
1684
}
0 commit comments