remove_stats_collection.patch 562 B

12345678910111213141516
  1. --- services/web/scripts/history/migrate_history.js
  2. +++ services/web/scripts/history/migrate_history.js
  3. @@ -110,14 +110,6 @@ async function findProjectsToMigrate() {
  4. process.exit(1)
  5. }
  6. - // Find the total number of history records for the projects we need to migrate
  7. - let docHistoryCount = 0
  8. - for await (const project of projectsToMigrate) {
  9. - const count = await countDocHistory({ project_id: project._id })
  10. - docHistoryCount += count
  11. - }
  12. -
  13. - console.log('Total history records to migrate:', docHistoryCount)
  14. return projectsToMigrate
  15. }