fix: don't send notes to booker if "Hide notes in calendar" is on (#12333)
This commit is contained in:
1 parent
8e7785ca64
commit
3de7b73f5f
1 file changed
+14
-1
@@ -87,6 +87,7 @@ export const sendScheduledEmails = async (
|
||||
new AttendeeScheduledEmail(
|
||||
{
|
||||
...calEvent,
|
||||
...(calEvent.hideCalendarNotes && { additionalNotes: undefined }),
|
||||
...(eventNameObject && {
|
||||
title: getEventName({ ...eventNameObject, t: attendee.language.translate }),
|
||||
}),
|
||||
@@ -152,7 +153,19 @@ export const sendScheduledSeatsEmails = async (
|
||||
}
|
||||
|
||||
if (!attendeeEmailDisabled) {
|
||||
emailsToSend.push(sendEmail(() => new AttendeeScheduledEmail(calEvent, invitee, showAttendees)));
|
||||
emailsToSend.push(
|
||||
sendEmail(
|
||||
() =>
|
||||
new AttendeeScheduledEmail(
|
||||
{
|
||||
...calEvent,
|
||||
...(calEvent.hideCalendarNotes && { additionalNotes: undefined }),
|
||||
},
|
||||
invitee,
|
||||
showAttendees
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
await Promise.all(emailsToSend);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user