dont set meta.config to null

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 662f92a4a8
commit 845f01f297

@ -15,23 +15,19 @@ var Configs = module.exports;
Meta.config = {}; Meta.config = {};
Configs.init = function (callback) { Configs.init = function (callback) {
Meta.config = null; var config;
async.waterfall([ async.waterfall([
function (next) { function (next) {
Configs.list(next); Configs.list(next);
}, },
function (config, next) { function (_config, next) {
cacheBuster.read(function (err, buster) { config = _config;
if (err) { cacheBuster.read(next);
return next(err); },
} function (buster, next) {
config['cache-buster'] = 'v=' + (buster || Date.now());
config['cache-buster'] = 'v=' + (buster || Date.now()); Meta.config = config;
next();
Meta.config = config;
next();
});
}, },
], callback); ], callback);
}; };

Loading…
Cancel
Save