From eb5f184377fb2e2e5db0a732a9c3d7ccac9407da Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Thu, 16 Mar 2023 17:53:42 +0100 Subject: [PATCH] Merge pull request #12272 from overleaf/bg-remove-doc-history-count remove doc history count from history migration GitOrigin-RevId: ab0ed685577de2fb5f9786981e5df5198d595c62 --- services/web/scripts/history/migrate_history.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/services/web/scripts/history/migrate_history.js b/services/web/scripts/history/migrate_history.js index cc0255c869..0f82efbe4d 100644 --- a/services/web/scripts/history/migrate_history.js +++ b/services/web/scripts/history/migrate_history.js @@ -110,14 +110,6 @@ async function findProjectsToMigrate() { process.exit(1) } - // Find the total number of history records for the projects we need to migrate - let docHistoryCount = 0 - for await (const project of projectsToMigrate) { - const count = await countDocHistory({ project_id: project._id }) - docHistoryCount += count - } - - console.log('Total history records to migrate:', docHistoryCount) return projectsToMigrate }