From 33e64819e45d0967a2a3cd78b43f3c065561e524 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sun, 7 Aug 2016 17:23:49 +0300 Subject: [PATCH] fix config bug --- lib/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins.js b/lib/plugins.js index 4a2e60b8..b7db9695 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -675,7 +675,7 @@ exports.getcryptoCodes = function getcryptoCodes () { } function sendMessage (rec) { - const pluginTypes = JSON.parse(cachedConfig.exchanges.plugins.current.notify) + const pluginTypes = cachedConfig.exchanges.plugins.current.notify const pluginPromises = pluginTypes.map(pluginType => { if (pluginType === 'email') return emailPlugin.sendMessage(rec) if (pluginType === 'sms') return smsPlugin.sendMessage(rec)