mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: switch back to getSortedSetRange
/cc @barisusakli
This commit is contained in:
@@ -64,7 +64,7 @@ async function getThumbs(set) {
|
||||
if (cached !== undefined) {
|
||||
return cached.slice();
|
||||
}
|
||||
const thumbs = await db.getSortedSetRangeByScore(set, 0, -1, '-inf', '+inf');
|
||||
const thumbs = await db.getSortedSetRange(set, 0, -1);
|
||||
cache.set(set, thumbs);
|
||||
return thumbs.slice();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user