Allow new "withScores" option in batch.processSortedSet (#6602)

v1.18.x
Julian Lam 7 years ago committed by Barış Soner Uşaklı
parent 6ae5d7ccae
commit df8c22e9c7

@ -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)) {

Loading…
Cancel
Save