Use done
to match JavaScript iterators
See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators
This commit is contained in:
@@ -70,9 +70,9 @@ exports.processNext = async ({
|
||||
|
||||
const totalDuration = Date.now() - startTime;
|
||||
const numProcessed = messagesRequiringSchemaUpgrade.length;
|
||||
const hasMore = numProcessed > 0;
|
||||
const done = numProcessed > 0;
|
||||
return {
|
||||
hasMore,
|
||||
done,
|
||||
numProcessed,
|
||||
fetchDuration,
|
||||
upgradeDuration,
|
||||
|
Reference in New Issue
Block a user