refactor: returned fields

This commit is contained in:
Barış Soner Uşaklı
2019-09-20 22:10:08 -04:00
parent 90f8bb99c0
commit 86b16629f8
7 changed files with 32 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ categoriesController.get = async function (req, res, next) {
}
const [states, categoriesData] = await Promise.all([
user.getCategoryWatchState(userData.uid),
categories.buildForSelect(userData.uid, 'find'),
categories.buildForSelect(userData.uid, 'find', ['descriptionParsed', 'depth']),
]);
categoriesData.forEach(function (category) {