mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 20:41:57 +00: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:
parent
d9b851fb9e
commit
cefdc78c6e
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue