fix: redis processing batch+1 items every iteration

isekai-main
Barış Soner Uşaklı 3 years ago
parent 9049dcd76c
commit 3261edcc32

@ -33,7 +33,7 @@ exports.processSortedSet = async function (setKey, process, options) {
options.doneIf = typeof options.doneIf === 'function' ? options.doneIf : function () {};
let start = 0;
let stop = options.batch;
let stop = options.batch - 1;
if (process && process.constructor && process.constructor.name !== 'AsyncFunction') {
process = util.promisify(process);

Loading…
Cancel
Save