mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix null case
This commit is contained in:
parent
fcbe4aa925
commit
f910e63e90
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ module.exports = UpdatesManager =
|
|||
MongoManager.insertCompressedUpdates project_id, doc_id, compressedUpdates, temporary,(error) ->
|
||||
return callback(error) if error?
|
||||
logger.log project_id: project_id, doc_id: doc_id, rawUpdatesLength: length, compressedUpdatesLength: compressedUpdates.length, "compressed doc updates"
|
||||
if lastCompressedUpdate.inS3?
|
||||
if lastCompressedUpdate?.inS3?
|
||||
MongoManager.remarkDocHistoryAsArchived doc_id, callback
|
||||
else
|
||||
callback()
|
||||
|
|
Loading…
Reference in a new issue