mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-27 21:16:09 +02:00
Fix up some deprecated config refs
This commit is contained in:
parent
eb4f933285
commit
dd2a6258d5
5 changed files with 27 additions and 26 deletions
|
@ -175,10 +175,11 @@ function initialize(cb) {
|
|||
async.series(
|
||||
[
|
||||
function createMissingDirectories(callback) {
|
||||
async.each(Object.keys(conf.config.paths), function entry(pathKey, next) {
|
||||
mkdirs(conf.config.paths[pathKey], function dirCreated(err) {
|
||||
const Config = conf.get();
|
||||
async.each(Object.keys(Config.paths), function entry(pathKey, next) {
|
||||
mkdirs(Config.paths[pathKey], function dirCreated(err) {
|
||||
if(err) {
|
||||
console.error('Could not create path: ' + conf.config.paths[pathKey] + ': ' + err.toString());
|
||||
console.error('Could not create path: ' + Config.paths[pathKey] + ': ' + err.toString());
|
||||
}
|
||||
return next(err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue