mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
refactor: returned fields
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user