mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
added interval option to processSortedSet
This commit is contained in:
@@ -63,7 +63,11 @@ exports.processSortedSet = function (setKey, process, options, callback) {
|
|||||||
start += utils.isNumber(options.alwaysStartAt) ? options.alwaysStartAt : batch + 1;
|
start += utils.isNumber(options.alwaysStartAt) ? options.alwaysStartAt : batch + 1;
|
||||||
stop = start + batch;
|
stop = start + batch;
|
||||||
|
|
||||||
|
if (options.interval) {
|
||||||
|
setTimeout(next, options.interval);
|
||||||
|
} else {
|
||||||
next();
|
next();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user