fix config bug

This commit is contained in:
Josh Harvey 2016-08-07 17:23:49 +03:00
parent dd7f4311c3
commit 33e64819e4

View file

@ -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)