232402_test_to_dev #1637

Merged
carlossa merged 27 commits from 232402_test_to_dev into dev 2023-06-26 10:10:54 +00:00
1 changed files with 8 additions and 4 deletions
Showing only changes of commit c9f11830a2 - Show all commits

View File

@ -20,14 +20,18 @@ module.exports = {
options.to = config.app.senderEmail;
}
let res;
let error;
return this.transporter.sendMail(options).catch(err => {
try {
res = await this.transporter.sendMail(options);
} catch (err) {
error = err;
throw err;
}).finally(async() => {
} finally {
await this.mailLog(options, error);
});
}
return res;
},
async mailLog(options, error) {