From 102a20931e8887c2512a187db3cd0d8684eb15d1 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 22 Oct 2020 17:02:54 +0200 Subject: [PATCH] Merge pull request #3310 from overleaf/jpa-validate-data-of-model-tweak-output [scripts] validate-data-of-model: log after processing GitOrigin-RevId: b9ab7989bf1b3af12469bbf8a0a82ad7c40e1f14 --- services/web/scripts/validate-data-of-model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/scripts/validate-data-of-model.js b/services/web/scripts/validate-data-of-model.js index 2d5909ff6d..f3eb789108 100644 --- a/services/web/scripts/validate-data-of-model.js +++ b/services/web/scripts/validate-data-of-model.js @@ -28,11 +28,11 @@ async function main() { (nextBatch = await getNextBatch(collection, query, maxId, projection)) .length ) { + processBatch(nextBatch) + maxId = nextBatch[nextBatch.length - 1]._id processed += nextBatch.length console.error(maxId, processed) - - processBatch(nextBatch) } console.error('done') }