mailer: handle error at the caller instead
the send test email logic breaks if we disable throwing error in send
This commit is contained in:
@@ -807,7 +807,7 @@ async function notifyLoginLocation(user, ip, userAgent, auditSource) {
|
||||
|
||||
await update(user, { loginLocations }, auditSource);
|
||||
|
||||
await mailer.sendNewLoginLocation(user, newLoginLocation);
|
||||
await safe(mailer.sendNewLoginLocation(user, newLoginLocation), { debug });
|
||||
}
|
||||
|
||||
async function setPassword(user, newPassword, auditSource) {
|
||||
|
||||
Reference in New Issue
Block a user