mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
don't try to compress updates across point of broken history
This commit is contained in:
@@ -41,6 +41,7 @@ module.exports = UpdatesManager =
|
||||
logger.error err: error, doc_id: doc_id, project_id: project_id, "inconsistent doc versions"
|
||||
if Settings.trackchanges?.continueOnError and rawUpdates[0].v > lastVersion + 1
|
||||
# we have lost some ops - continue to write into the database, we can't recover at this point
|
||||
lastCompressedUpdate = null
|
||||
else
|
||||
return callback error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user