mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
More Hot-Reload related changes
* Config.get(): Returns the latest config * Update code all over the place to use Config.get() vs Config.conf (which will be deprecated)
This commit is contained in:
parent
ca0149eaf0
commit
1fe46894d3
42 changed files with 320 additions and 273 deletions
|
@ -390,10 +390,10 @@ function displayFileAreaInfo() {
|
|||
return initConfigAndDatabases(callback);
|
||||
},
|
||||
function dumpInfo(callback) {
|
||||
const Config = require('../../core/config.js').config;
|
||||
const sysConfig = require('../../core/config.js').get();
|
||||
let suppliedAreas = argv._.slice(2);
|
||||
if(!suppliedAreas || 0 === suppliedAreas.length) {
|
||||
suppliedAreas = _.map(Config.fileBase.areas, (areaInfo, areaTag) => areaTag);
|
||||
suppliedAreas = _.map(sysConfig.fileBase.areas, (areaInfo, areaTag) => areaTag);
|
||||
}
|
||||
|
||||
const areaAndStorageInfo = getAreaAndStorage(suppliedAreas);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue