small change

v1.18.x
barisusakli 8 years ago
parent 026c32f32b
commit 4cd4414d19

@ -44,8 +44,8 @@ Blacklist.save = function (rules, callback) {
db.set('ip-blacklist-rules', rules, next); db.set('ip-blacklist-rules', rules, next);
}, },
function (next) { function (next) {
Blacklist.load(next);
pubsub.publish('blacklist:reload'); pubsub.publish('blacklist:reload');
next();
} }
], callback); ], callback);
}; };

@ -177,11 +177,7 @@ module.exports = function (Meta) {
next(); next();
}); });
}, function (err) { }, function (err) {
if (err) { callback(err, modules);
return callback(err);
}
callback(null, modules);
}); });
} }
@ -191,27 +187,25 @@ module.exports = function (Meta) {
}); });
async.each(builtPaths, function (builtPath, next) { async.each(builtPaths, function (builtPath, next) {
rimraf(path.join(__dirname, builtPath), next); rimraf(path.join(__dirname, builtPath), next);
}, callback); }, function (err) {
callback(err);
});
} }
Meta.js.buildModules = function (callback) { Meta.js.buildModules = function (callback) {
clearModules(function (err) { async.waterfall([
if (err) { clearModules,
return callback(err); function (next) {
}
if (global.env === 'development') { if (global.env === 'development') {
return linkModules(callback); return linkModules(callback);
} }
getModuleList(function (err, modules) { getModuleList(next);
if (err) { },
return callback(err); function (modules, next) {
minifyModules(modules, next);
} }
], callback);
minifyModules(modules, callback);
});
});
}; };
Meta.js.linkStatics = function (callback) { Meta.js.linkStatics = function (callback) {

Loading…
Cancel
Save