Removed left-over console.log

pull/219/head
Alex van Andel 2021-05-27 22:26:10 +00:00
parent adbf0476ad
commit 89cefa9894
1 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ const sendEmail = (calEvent: CalendarEvent, {
text: text(calEvent), text: text(calEvent),
}, },
(error, info) => { (error, info) => {
console.log(info);
if (error) { if (error) {
console.error("SEND_BOOKING_CONFIRMATION_ERROR", calEvent.attendees[0].email, error); console.error("SEND_BOOKING_CONFIRMATION_ERROR", calEvent.attendees[0].email, error);
return reject(new Error(error)); return reject(new Error(error));
@ -53,7 +52,7 @@ const html = (calEvent: CalendarEvent) => {
<div> <div>
Hi ${calEvent.attendees[0].name},<br /> Hi ${calEvent.attendees[0].name},<br />
<br /> <br />
Your ${calEvent.type} with ${calEvent.organizer.name} at ${inviteeStart.format('h:mma')} Your ${calEvent.type} with ${calEvent.organizer.name} at ${inviteeStart.format('h:mma')}
(${calEvent.attendees[0].timeZone}) on ${inviteeStart.format('dddd, LL')} is scheduled.<br /> (${calEvent.attendees[0].timeZone}) on ${inviteeStart.format('dddd, LL')} is scheduled.<br />
<br /> <br />
Additional notes:<br /> Additional notes:<br />
@ -62,4 +61,4 @@ const html = (calEvent: CalendarEvent) => {
`; `;
}; };
const text = (evt: CalendarEvent) => html(evt).replace('<br />', "\n").replace(/<[^>]+>/g, ''); const text = (evt: CalendarEvent) => html(evt).replace('<br />', "\n").replace(/<[^>]+>/g, '');