mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #12272 from overleaf/bg-remove-doc-history-count
remove doc history count from history migration GitOrigin-RevId: ab0ed685577de2fb5f9786981e5df5198d595c62
This commit is contained in:
parent
5ae4e68380
commit
eb5f184377
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue