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:
Girish Ramakrishnan
2025-08-06 10:18:05 +02:00
parent 5c7d19ce13
commit c184f1e42e
3 changed files with 12 additions and 11 deletions

View File

@@ -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) {