prettifying things

v1.18.x
Julian Lam 10 years ago
parent f6181e6481
commit 7125d902d0

@ -154,12 +154,8 @@ adminController.categories.getAll = function(req, res, next) {
disabled = []; disabled = [];
async.waterfall([ async.waterfall([
function(next) { async.apply(db.getSortedSetRange, 'categories:cid', 0, -1),
db.getSortedSetRange('categories:cid', 0, -1, next); async.apply(categories.getCategoriesData),
},
function(cids, next) {
categories.getCategoriesData(cids, next);
},
function(categories, next) { function(categories, next) {
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categories}, next); plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categories}, next);
} }

Loading…
Cancel
Save