Merge pull request #266 from cubedro/develop
WS_SECRET json accepts object
This commit is contained in:
commit
10541dcb9f
5
app.js
5
app.js
@ -20,11 +20,12 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
WS_SECRET = require('./ws_secret.json');
|
var tmp_secret_json = require('./ws_secret.json');
|
||||||
|
WS_SECRET = _.values(tmp_secret_json);
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
console.error("WS_SECRET NOT SET");
|
console.error("WS_SECRET NOT SET!!!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user