Removed left-over console.log
parent
adbf0476ad
commit
89cefa9894
|
@ -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, '');
|
||||||
|
|
Loading…
Reference in New Issue