mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user