|
|
@ -72,8 +72,7 @@ module.exports = function (Categories) {
|
|
|
|
normalTids = await db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, stop);
|
|
|
|
normalTids = await db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, stop);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
normalTids = normalTids.filter(tid => !pinnedTids.includes(tid));
|
|
|
|
normalTids = normalTids.filter(tid => !pinnedTids.includes(tid));
|
|
|
|
|
|
|
|
return pinnedTidsOnPage.concat(normalTids);
|
|
|
|
return pinnedTids.concat(normalTids);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Categories.getTopicCount = async function (data) {
|
|
|
|
Categories.getTopicCount = async function (data) {
|
|
|
|