From 13aaf07bf5bfce0c79930c88aa20d0be4ec9de48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 14 Jul 2019 17:48:02 -0400 Subject: [PATCH] fix: getTopicsFromSet --- src/topics/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/index.js b/src/topics/index.js index 61c1c62908..7473f5754a 100644 --- a/src/topics/index.js +++ b/src/topics/index.js @@ -37,7 +37,7 @@ Topics.exists = async function (tid) { }; 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); Topics.calculateTopicIndices(topics, start); return { topics: topics, nextStart: stop + 1 };