add color/bgColor to return

v1.18.x
psychobunny 9 years ago
parent 0ded293caf
commit b2049e7acf

@ -34,7 +34,7 @@ unreadController.get = function(req, res, next) {
privileges.categories.filterCids('read', results.watchedCategories, req.uid, next); privileges.categories.filterCids('read', results.watchedCategories, req.uid, next);
}, },
function(cids, next) { function(cids, next) {
categories.getCategoriesFields(cids, ['cid', 'name', 'slug', 'icon', 'link'], next); categories.getCategoriesFields(cids, ['cid', 'name', 'slug', 'icon', 'link', 'color', 'bgColor'], next);
}, },
function(categories, next) { function(categories, next) {
categories = categories.filter(function(category) { categories = categories.filter(function(category) {

Loading…
Cancel
Save