Merge pull request #224 from emrysal/bugfix/add-location-to-email

This commit is contained in:
Bailey Pumfleet 2021-05-29 08:32:31 +01:00 committed by GitHub
commit eb02dd2dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View file

@ -54,8 +54,10 @@ const html = (calEvent: CalendarEvent) => {
<br />
Your ${calEvent.type} with ${calEvent.organizer.name} at ${inviteeStart.format('h:mma')}
(${calEvent.attendees[0].timeZone}) on ${inviteeStart.format('dddd, LL')} is scheduled.<br />
<br />
Additional notes:<br />
<br />` + (
calEvent.location ? `<strong>Location:</strong> ${calEvent.location}<br /><br />` : ''
) +
`Additional notes:<br />
${calEvent.description}
</div>
`;

View file

@ -78,9 +78,16 @@ const html = (evt: CalendarEvent) => `
${evt.type}<br />
<br />
<strong>Invitee Email:</strong><br />
<a href=\\"mailto:${evt.attendees[0].email}\\">${evt.attendees[0].email}</a><br />
<a href="mailto:${evt.attendees[0].email}">${evt.attendees[0].email}</a><br />
<br />` +
(
evt.location ? `
<strong>Location:</strong><br />
${evt.location}<br />
<br />
<strong>Invitee Time Zone:</strong><br />
` : ''
) +
`<strong>Invitee Time Zone:</strong><br />
${evt.attendees[0].timeZone}<br />
<br />
<strong>Additional notes:</strong><br />