fix: notification alerts

This commit is contained in:
Sérgio Salgado 2021-12-10 00:03:32 +00:00
parent 864e5d2f88
commit d0cc85157f

View file

@ -38,8 +38,9 @@ function checkNotification (plugins) {
const notifications = plugins.getNotificationConfig() const notifications = plugins.getNotificationConfig()
const smsEnabled = utils.isActive(notifications.sms) const smsEnabled = utils.isActive(notifications.sms)
const emailEnabled = utils.isActive(notifications.email) const emailEnabled = utils.isActive(notifications.email)
const notificationCenterEnabled = utils.isActive(notifications.notificationCenter)
if (!smsEnabled && !emailEnabled) return Promise.resolve() if (!(notificationCenterEnabled || smsEnabled || emailEnabled)) return Promise.resolve()
return getAlerts(plugins) return getAlerts(plugins)
.then(alerts => { .then(alerts => {