added err to next

v1.18.x
barisusakli 11 years ago
parent 9125292b0e
commit beb7313138

@ -151,7 +151,7 @@ middleware.buildHeader = function(req, res, next) {
function(next) {
controllers.api.getConfig(req, res, function(err, config) {
res.locals.config = config;
next();
next(err);
});
},
function(next) {
@ -163,9 +163,7 @@ middleware.buildHeader = function(req, res, next) {
});
});
}
], function(err) {
next(err);
});
], next);
};
middleware.renderHeader = function(req, res, callback) {

Loading…
Cancel
Save