From d0cc85157fc57dabb145731e3168343a0fb81187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Fri, 10 Dec 2021 00:03:32 +0000 Subject: [PATCH] fix: notification alerts --- lib/notifier/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/notifier/index.js b/lib/notifier/index.js index a41f4268..8b68ed03 100644 --- a/lib/notifier/index.js +++ b/lib/notifier/index.js @@ -38,8 +38,9 @@ function checkNotification (plugins) { const notifications = plugins.getNotificationConfig() const smsEnabled = utils.isActive(notifications.sms) 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) .then(alerts => {