mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
added err to next
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user