mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-02 16:01:55 +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
|
@ -5,7 +5,7 @@
|
|||
const MenuModule = require('./menu_module.js').MenuModule;
|
||||
const Errors = require('../core/enig_error.js').Errors;
|
||||
const ANSI = require('./ansi_term.js');
|
||||
const Config = require('./config.js').config;
|
||||
const Config = require('./config.js').get;
|
||||
|
||||
// deps
|
||||
const async = require('async');
|
||||
|
@ -90,7 +90,7 @@ exports.getModule = class ShowArtModule extends MenuModule {
|
|||
}
|
||||
|
||||
// further resolve key -> file base area art
|
||||
const artSpec = _.get(Config, [ 'fileBase', 'areas', key, 'art' ]);
|
||||
const artSpec = _.get(Config(), [ 'fileBase', 'areas', key, 'art' ]);
|
||||
if(!artSpec) {
|
||||
return cb(Errors.MissingConfig(`No art defined for file base area "${key}"`));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue