mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 22:15:25 +00:00
use packs only for temporary ops
This commit is contained in:
parent
b3f0dc4157
commit
84ace7f4c7
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ module.exports = UpdatesManager =
|
|||
if rawUpdates.length == 0
|
||||
return callback()
|
||||
|
||||
if not lastCompressedUpdate? or lastCompressedUpdate.pack? # handle pack append as a special case
|
||||
if temporary and (not lastCompressedUpdate? or lastCompressedUpdate.pack?) # handle pack append as a special case
|
||||
UpdatesManager._updatePack project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback
|
||||
else #use the existing op code
|
||||
UpdatesManager._updateOp project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback
|
||||
|
|
Loading…
Add table
Reference in a new issue