fix config bug
This commit is contained in:
parent
dd7f4311c3
commit
33e64819e4
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ exports.getcryptoCodes = function getcryptoCodes () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendMessage (rec) {
|
function sendMessage (rec) {
|
||||||
const pluginTypes = JSON.parse(cachedConfig.exchanges.plugins.current.notify)
|
const pluginTypes = cachedConfig.exchanges.plugins.current.notify
|
||||||
const pluginPromises = pluginTypes.map(pluginType => {
|
const pluginPromises = pluginTypes.map(pluginType => {
|
||||||
if (pluginType === 'email') return emailPlugin.sendMessage(rec)
|
if (pluginType === 'email') return emailPlugin.sendMessage(rec)
|
||||||
if (pluginType === 'sms') return smsPlugin.sendMessage(rec)
|
if (pluginType === 'sms') return smsPlugin.sendMessage(rec)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue