mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-14 02:27:49 +01:00
Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop
This commit is contained in:
@@ -81,10 +81,9 @@ module.exports = function (Categories) {
|
||||
return result && result.topicCount;
|
||||
}
|
||||
const set = await Categories.buildTopicsSortedSet(data);
|
||||
console.log(set);
|
||||
if (Array.isArray(set)) {
|
||||
return await db.sortedSetIntersectCard(set);
|
||||
} else if (parseInt(data.cid, 10) === -1 || data.targetUid && set) {
|
||||
} else if (parseInt(data.cid, 10) === -1 || (data.targetUid && set)) {
|
||||
return await db.sortedSetCard(set);
|
||||
}
|
||||
return data.category.topic_count;
|
||||
|
||||
Reference in New Issue
Block a user