|
|
|
@ -17,8 +17,6 @@ flagsController.get = function(req, res, next) {
|
|
|
|
|
var start = (page - 1) * itemsPerPage;
|
|
|
|
|
var stop = start + itemsPerPage - 1;
|
|
|
|
|
|
|
|
|
|
async.waterfall([
|
|
|
|
|
function (next) {
|
|
|
|
|
async.parallel({
|
|
|
|
|
flagData: function(next) {
|
|
|
|
|
if (byUsername) {
|
|
|
|
@ -34,9 +32,7 @@ flagsController.get = function(req, res, next) {
|
|
|
|
|
assignees: function(next) {
|
|
|
|
|
user.getAdminsandGlobalMods(next);
|
|
|
|
|
}
|
|
|
|
|
}, next);
|
|
|
|
|
}
|
|
|
|
|
], function (err, results) {
|
|
|
|
|
}, function (err, results) {
|
|
|
|
|
if (err) {
|
|
|
|
|
return next(err);
|
|
|
|
|
}
|
|
|
|
|