mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Allow empty users in config.json
This commit is contained in:
parent
2c7c22038d
commit
ce48670747
@ -41,8 +41,8 @@ exports.setup = function(loadJson, rootDir){
|
||||
}
|
||||
}
|
||||
|
||||
if(!loadJson.users || typeof loadJson.users !== 'object'){
|
||||
errorArray.push('No Users');
|
||||
if(loadJson.users && typeof loadJson.users !== 'object'){
|
||||
errorArray.push('Users need to be an object');
|
||||
loadJson.error = errorArray;
|
||||
return loadJson;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user