Merge pull request #10739 from overleaf/em-history-mongo-backend

Send a history id from web when creating a project

GitOrigin-RevId: dd1417ae734c76990931885df1864a81a9439da0
This commit is contained in:
Eric Mc Sween
2022-12-07 09:03:51 +00:00
committed by Copybot
parent 2675cab92e
commit 38df974ce1
8 changed files with 65 additions and 56 deletions
@@ -176,7 +176,7 @@ async function doUpgradeForNoneWithoutConversion(project) {
// of a resync request to doc-updater
let historyId = await ProjectHistoryHandler.promises.getHistoryId(projectId)
if (historyId == null) {
historyId = await HistoryManager.promises.initializeProject()
historyId = await HistoryManager.promises.initializeProject(projectId)
if (historyId != null) {
await ProjectHistoryHandler.promises.setHistoryId(projectId, historyId)
}
@@ -121,7 +121,7 @@ async function doUpgradeForNoneWithoutConversion(project) {
projectId
)
if (historyId == null) {
historyId = await HistoryManager.promises.initializeProject()
historyId = await HistoryManager.promises.initializeProject(projectId)
if (historyId != null) {
await ProjectHistoryHandler.promises.setHistoryId(
projectId,