mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: getTopicsFromSet
This commit is contained in:
@@ -37,7 +37,7 @@ Topics.exists = async function (tid) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Topics.getTopicsFromSet = async function (set, uid, start, stop) {
|
Topics.getTopicsFromSet = async function (set, uid, start, stop) {
|
||||||
const tids = await db.getSortedSetRange(set, start, stop);
|
const tids = await db.getSortedSetRevRange(set, start, stop);
|
||||||
const topics = await Topics.getTopics(tids, uid);
|
const topics = await Topics.getTopics(tids, uid);
|
||||||
Topics.calculateTopicIndices(topics, start);
|
Topics.calculateTopicIndices(topics, start);
|
||||||
return { topics: topics, nextStart: stop + 1 };
|
return { topics: topics, nextStart: stop + 1 };
|
||||||
|
|||||||
Reference in New Issue
Block a user