Fix - Email Notes (#2356)
Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Omar López <zomars@me.com>pull/2362/head
parent
9948f9d854
commit
95aa5fe308
|
@ -326,7 +326,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
(str, input) => str + "<br /><br />" + input.label + ":<br />" + input.value,
|
(str, input) => str + "<br /><br />" + input.label + ":<br />" + input.value,
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|
||||||
const evt: CalendarEvent = {
|
const evt: CalendarEvent = {
|
||||||
type: eventType.title,
|
type: eventType.title,
|
||||||
title: getEventName(eventNameObject), //this needs to be either forced in english, or fetched for each attendee and organizer separately
|
title: getEventName(eventNameObject), //this needs to be either forced in english, or fetched for each attendee and organizer separately
|
||||||
|
@ -530,6 +529,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
if (rescheduleUid) {
|
if (rescheduleUid) {
|
||||||
// Use EventManager to conditionally use all needed integrations.
|
// Use EventManager to conditionally use all needed integrations.
|
||||||
const updateManager = await eventManager.update(evt, rescheduleUid);
|
const updateManager = await eventManager.update(evt, rescheduleUid);
|
||||||
|
// This gets overridden when updating the event - to check if notes have been hidden or not. We just reset this back
|
||||||
|
// to the default description when we are sending the emails.
|
||||||
|
evt.description = description;
|
||||||
|
|
||||||
results = updateManager.results;
|
results = updateManager.results;
|
||||||
referencesToCreate = updateManager.referencesToCreate;
|
referencesToCreate = updateManager.referencesToCreate;
|
||||||
|
@ -564,6 +566,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
// Use EventManager to conditionally use all needed integrations.
|
// Use EventManager to conditionally use all needed integrations.
|
||||||
const createManager = await eventManager.create(evt);
|
const createManager = await eventManager.create(evt);
|
||||||
|
|
||||||
|
// This gets overridden when creating the event - to check if notes have been hidden or not. We just reset this back
|
||||||
|
// to the default description when we are sending the emails.
|
||||||
|
evt.description = description;
|
||||||
|
|
||||||
results = createManager.results;
|
results = createManager.results;
|
||||||
referencesToCreate = createManager.referencesToCreate;
|
referencesToCreate = createManager.referencesToCreate;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue