diff --git a/src/alerts.js b/src/alerts.js index 2de906a..bb48192 100755 --- a/src/alerts.js +++ b/src/alerts.js @@ -448,7 +448,12 @@ const frequencies = { }; async function sendEmailAlerts() { - if (!config.email.enabled || !resend) { + if (!config.email.enabled) { + return; + } + + if (!resend) { + logger.warn('E-mails are enabled, but Resend is not initialized'); return; }