mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
Allow new "withScores" option in batch.processSortedSet (#6602)
This commit is contained in:
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)) {
|
||||
|
||||
Reference in New Issue
Block a user