From df8c22e9c7ded58e60f52062495a80ba31ebca8e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 22 Jun 2018 16:28:25 -0400 Subject: [PATCH] Allow new "withScores" option in batch.processSortedSet (#6602) --- src/batch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/batch.js b/src/batch.js index 3a91775025..5841fcc19a 100644 --- a/src/batch.js +++ b/src/batch.js @@ -51,7 +51,7 @@ exports.processSortedSet = function (setKey, process, options, callback) { function (next) { async.waterfall([ function (next) { - db.getSortedSetRange(setKey, start, stop, next); + db['getSortedSetRange' + (options.withScores ? 'WithScores' : '')](setKey, start, stop, next); }, function (ids, _next) { if (!ids.length || options.doneIf(start, stop, ids)) {