mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #11550 from overleaf/msm-migrate-history-count-fix
[web/scripts] fix error count in `migrate_history.js` GitOrigin-RevId: d7326c4e25913969f196276c913e70a03398f3ac
This commit is contained in:
@@ -88,8 +88,13 @@ async function migrateProjects(projectsToMigrate) {
|
||||
console.log(`Migrating project: ${project._id}`)
|
||||
try {
|
||||
const result = await upgradeProject(project._id)
|
||||
console.log('migration result', result)
|
||||
projectsMigrated++
|
||||
if (result.error) {
|
||||
console.error('migration failed', result)
|
||||
projectsFailed++
|
||||
} else {
|
||||
console.log('migration result', result)
|
||||
projectsMigrated++
|
||||
}
|
||||
} catch (err) {
|
||||
projectsFailed++
|
||||
console.error(err)
|
||||
|
||||
Reference in New Issue
Block a user