mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
fix log message when sending
This commit is contained in:
@@ -208,10 +208,10 @@ async function sendMail({
|
|||||||
try {
|
try {
|
||||||
await sgMail.send(data)
|
await sgMail.send(data)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error(error)
|
log.error('Failed to send email', error)
|
||||||
|
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
log.error(error.response.body)
|
log.error('Failed to send email', error.response.body)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: stuff into DB if failed and retry later
|
// TODO: stuff into DB if failed and retry later
|
||||||
|
|||||||
Reference in New Issue
Block a user