Fix archive util config reload

This commit is contained in:
Bryan Ashby 2018-06-23 21:02:16 -06:00
parent 469c08b0f2
commit 5bb4f9b903
3 changed files with 18 additions and 8 deletions

View file

@ -94,7 +94,12 @@ function init(configPath, options, cb) {
const reCachedPath = paths.join(fileRoot, fileName);
ConfigCache.getConfig(reCachedPath, (err, config) => {
if(!err) {
mergeValidateAndFinalize(config);
mergeValidateAndFinalize(config, err => {
if(!err) {
const Events = require('./events.js');
Events.emit(Events.getSystemEvents().ConfigChanged);
}
});
}
});
};