fix(email): correctly log errors when emails fail to send

pull/470/head
sct 4 years ago
parent 32b4c99950
commit 0980fa54f9

@ -113,7 +113,7 @@ class EmailAgent
try { try {
const email = this.getNewEmail(); const email = this.getNewEmail();
email.send({ await email.send({
template: path.join( template: path.join(
__dirname, __dirname,
'../../../templates/email/media-request' '../../../templates/email/media-request'
@ -150,7 +150,7 @@ class EmailAgent
try { try {
const email = this.getNewEmail(); const email = this.getNewEmail();
email.send({ await email.send({
template: path.join( template: path.join(
__dirname, __dirname,
'../../../templates/email/media-request' '../../../templates/email/media-request'
@ -187,7 +187,7 @@ class EmailAgent
try { try {
const email = this.getNewEmail(); const email = this.getNewEmail();
email.send({ await email.send({
template: path.join(__dirname, '../../../templates/email/test-email'), template: path.join(__dirname, '../../../templates/email/test-email'),
message: { message: {
to: payload.notifyUser.email, to: payload.notifyUser.email,

Loading…
Cancel
Save