mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 19:47:34 +01:00
fix: lint
This commit is contained in:
@@ -81,10 +81,9 @@ module.exports = function (Categories) {
|
|||||||
return result && result.topicCount;
|
return result && result.topicCount;
|
||||||
}
|
}
|
||||||
const set = await Categories.buildTopicsSortedSet(data);
|
const set = await Categories.buildTopicsSortedSet(data);
|
||||||
console.log(set);
|
|
||||||
if (Array.isArray(set)) {
|
if (Array.isArray(set)) {
|
||||||
return await db.sortedSetIntersectCard(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 await db.sortedSetCard(set);
|
||||||
}
|
}
|
||||||
return data.category.topic_count;
|
return data.category.topic_count;
|
||||||
|
|||||||
Reference in New Issue
Block a user