Compare commits

..

2 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
1a375000a7 refactor: only pass qs 2021-12-16 13:47:12 -05:00
Barış Soner Uşaklı
1f8f2e9168 feat: pass in all query params to category search filter 2021-12-16 13:33:37 -05:00

View File

@@ -53,10 +53,10 @@ module.exports = function (SocketCategories) {
const result = await categories.search({
uid: uid,
query: data.search,
qs: data.query,
paginate: false,
});
let matchedCids = result.categories.map(c => c.cid);
// no need to filter if all 3 states are used
const filterByWatchState = !Object.values(categories.watchStates)