omg tests (#5232), and .create returns flag data now

This commit is contained in:
Julian Lam
2016-11-25 15:09:52 -05:00
parent 98a104564b
commit 9f7c4befea
3 changed files with 126 additions and 10 deletions

View File

@@ -25,7 +25,11 @@ modsController.flags.list = function (req, res, next) {
res.locals.cids = results.moderatedCids;
}
flags.list({}, function(err, flags) {
flags.list({}, function (err, flags) {
if (err) {
return next(err);
}
res.render('flags/list', {
flags: flags
});