fix: notification alerts
This commit is contained in:
parent
864e5d2f88
commit
d0cc85157f
1 changed files with 2 additions and 1 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue