Merge pull request #11663 from overleaf/bg-add-migration-force-options

add migration force options

GitOrigin-RevId: 51eb88e995a6e348e00208e9d01c9c1fa6c0c1ea
This commit is contained in:
Miguel Serrano
2023-02-07 09:55:15 +00:00
committed by Copybot
parent 832a0facba
commit 89dd3b94b1
2 changed files with 20 additions and 4 deletions
@@ -98,7 +98,7 @@ async function determineProjectHistoryType(project) {
}
}
async function upgradeProject(project) {
async function upgradeProject(project, options) {
const historyType = await determineProjectHistoryType(project)
if (historyType === 'V2') {
return { historyType, upgraded: true }
@@ -107,7 +107,7 @@ async function upgradeProject(project) {
if (!upgradeFn) {
return { error: 'unsupported history type' }
}
const result = await upgradeFn(project)
const result = await upgradeFn(project, options)
result.historyType = historyType
return result
}