Merge pull request #11663 from overleaf/bg-add-migration-force-options
add migration force options GitOrigin-RevId: 51eb88e995a6e348e00208e9d01c9c1fa6c0c1ea
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user