Node.js based forum software built for the modern web
fix unneeded async
yariplus08e4f1497128
diff --git a/src/controllers/admin.js b/src/controllers/admin.jsindex 7d1e55d8c2..07c7f9f1da 100644--- a/src/controllers/admin.js+++ b/src/controllers/admin.js@@ -359,14 +359,13 @@ adminController.homepage.get = function(req, res, next) {categories.getMultipleCategoryFields(cids, ['name', 'slug'], next);},function(categoryData, next) {- async.map(categoryData, function(category, next) {- var route = 'category/' + category.slug;-- next(null, {- route: route,+ categoryData = categoryData.map(function(category) {+ return {+ route: 'category/' + category.slug,name: 'Category: ' + category.name- });- }, next);+ };+ });+ next(null, categoryData);}], function(err, categoryData) {if (err || !categoryData) categoryData = [];