fix: getTopicsFromSet

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 9eb1fcd4e5
commit 13aaf07bf5

@ -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 };

Loading…
Cancel
Save