mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
check err
This commit is contained in:
@@ -195,6 +195,9 @@ apiController.getUserByUID = function(req, res, next) {
|
|||||||
|
|
||||||
apiController.getModerators = function(req, res, next) {
|
apiController.getModerators = function(req, res, next) {
|
||||||
categories.getModerators(req.params.cid, function(err, moderators) {
|
categories.getModerators(req.params.cid, function(err, moderators) {
|
||||||
|
if (err) {
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
res.json({moderators: moderators});
|
res.json({moderators: moderators});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user