mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: redis batch
This commit is contained in:
@@ -47,8 +47,8 @@ exports.processSortedSet = async function (setKey, process, options) {
|
||||
}
|
||||
await process(ids);
|
||||
|
||||
start += utils.isNumber(options.alwaysStartAt) ? options.alwaysStartAt : options.batch + 1;
|
||||
stop = start + options.batch;
|
||||
start += utils.isNumber(options.alwaysStartAt) ? options.alwaysStartAt : options.batch;
|
||||
stop = start + options.batch - 1;
|
||||
|
||||
if (options.interval) {
|
||||
await sleep(options.interval);
|
||||
|
||||
Reference in New Issue
Block a user