Răsfoiți Sursa

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

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

GitOrigin-RevId: b9ab7989bf1b3af12469bbf8a0a82ad7c40e1f14
Jakob Ackermann 6 ani în urmă
părinte
comite
102a20931e
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      services/web/scripts/validate-data-of-model.js

+ 2 - 2
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')
 }