mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7102
This commit is contained in:
@@ -29,6 +29,9 @@ module.exports = function (redisClient, module) {
|
||||
|
||||
function sortedSetRange(method, key, start, stop, withScores, callback) {
|
||||
if (Array.isArray(key)) {
|
||||
if (!key.length) {
|
||||
return setImmediate(callback, null, []);
|
||||
}
|
||||
const batch = redisClient.batch();
|
||||
key.forEach((key) => {
|
||||
batch[method]([key, start, stop, 'WITHSCORES']);
|
||||
|
||||
Reference in New Issue
Block a user