Separated Resend initialization failure in email handler.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user