fix notifications
This commit is contained in:
parent
db79f958c8
commit
9e1b5cbd6d
7 changed files with 456 additions and 181 deletions
|
|
@ -266,7 +266,7 @@ function plugins (settings) {
|
|||
}
|
||||
}
|
||||
|
||||
return sms.sendMessage(rec)
|
||||
return sms.sendMessage(settings, rec)
|
||||
.then(() => dbm.updateNotify(tx))
|
||||
}
|
||||
|
||||
|
|
@ -403,8 +403,8 @@ function plugins (settings) {
|
|||
const config = configManager.unscoped(settings.config)
|
||||
|
||||
let promises = []
|
||||
if (config.notificationsEmailEnabled) promises.push(email.sendMessage(rec))
|
||||
if (config.notificationsSMSEnabled) promises.push(sms.sendMessage(rec))
|
||||
if (config.notificationsEmailEnabled) promises.push(email.sendMessage(settings, rec))
|
||||
if (config.notificationsSMSEnabled) promises.push(sms.sendMessage(settings, rec))
|
||||
|
||||
return Promise.all(promises)
|
||||
}
|
||||
|
|
@ -466,7 +466,7 @@ function plugins (settings) {
|
|||
}
|
||||
}
|
||||
|
||||
return sms.sendMessage(rec)
|
||||
return sms.sendMessage(settings, rec)
|
||||
.then(() => code)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue