feat: add filter:categories.getRecentTopicReplies

pass req.query to getRecentTopicReplies
This commit is contained in:
Barış Soner Uşaklı
2020-05-08 22:36:16 -04:00
parent 7e42988489
commit aad0880f7c
4 changed files with 18 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ categoryController.get = async function (req, res, next) {
if (categoryData.children.length) {
const allCategories = [];
categories.flattenCategories(allCategories, categoryData.children);
await categories.getRecentTopicReplies(allCategories, req.uid);
await categories.getRecentTopicReplies(allCategories, req.uid, req.query);
}
categoryData.title = translator.escape(categoryData.name);