From 1f5a8eebf8ce2234f4d09d229d5224ffcc414405 Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 19 Aug 2015 21:20:02 +0300 Subject: [PATCH] WS_SECRET json accepts object --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 6d0fe9a..d0f11e8 100644 --- a/app.js +++ b/app.js @@ -20,11 +20,12 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) ) else { try { - WS_SECRET = require('./ws_secret.json'); + var tmp_secret_json = require('./ws_secret.json'); + WS_SECRET = _.values(tmp_secret_json); } catch (e) { - console.error("WS_SECRET NOT SET"); + console.error("WS_SECRET NOT SET!!!"); } }