fix: switch back to getSortedSetRange

/cc @barisusakli
This commit is contained in:
Julian Lam
2021-02-17 10:41:48 -05:00
parent ce3f581434
commit 8686fbfa3f

View File

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