mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 15:35:45 +02:00
more err checks
This commit is contained in:
@@ -5,11 +5,14 @@ var groups = require('../groups'),
|
||||
nconf = require('nconf'),
|
||||
groupsController = {};
|
||||
|
||||
groupsController.list = function(req, res) {
|
||||
groupsController.list = function(req, res, next) {
|
||||
groups.list({
|
||||
truncateUserList: true,
|
||||
expand: true
|
||||
}, function(err, groups) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
res.render('groups/list', {
|
||||
groups: groups
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user