Merge pull request #3310 from overleaf/jpa-validate-data-of-model-tweak-output

[scripts] validate-data-of-model: log after processing

GitOrigin-RevId: b9ab7989bf1b3af12469bbf8a0a82ad7c40e1f14
This commit is contained in:
Jakob Ackermann 2020-10-22 17:02:54 +02:00 committed by Copybot
parent e9f7a17093
commit 102a20931e

View file

@ -28,11 +28,11 @@ async function main() {
(nextBatch = await getNextBatch(collection, query, maxId, projection)) (nextBatch = await getNextBatch(collection, query, maxId, projection))
.length .length
) { ) {
processBatch(nextBatch)
maxId = nextBatch[nextBatch.length - 1]._id maxId = nextBatch[nextBatch.length - 1]._id
processed += nextBatch.length processed += nextBatch.length
console.error(maxId, processed) console.error(maxId, processed)
processBatch(nextBatch)
} }
console.error('done') console.error('done')
} }