mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Use correct identifier for updating history id
GitOrigin-RevId: d95c6e85a8fd530189c14e36fed1112a51fb8609
This commit is contained in:
@@ -122,13 +122,18 @@ async function fixAndFlushProjects(updates) {
|
||||
for (const update of updates) {
|
||||
logger.debug({ ...update }, 'Flushing project')
|
||||
if (commit) {
|
||||
await rclient.set(
|
||||
docUpdaterKeys.projectHistoryId({ doc_id: '*' }),
|
||||
update.historyId
|
||||
)
|
||||
await ProjectManager.promises.flushAndDeleteProjectWithLocks(
|
||||
update.projectId,
|
||||
{}
|
||||
try {
|
||||
await rclient.set(
|
||||
docUpdaterKeys.projectHistoryId({ doc_id: update.docId }),
|
||||
update.historyId
|
||||
)
|
||||
await ProjectManager.promises.flushAndDeleteProjectWithLocks(
|
||||
update.projectId,
|
||||
{}
|
||||
)
|
||||
} catch (err) {
|
||||
logger.error({ err, ...update }, 'Error fixing and flushing project')
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user