diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index e1c9541748..80b3a0d58b 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -42,7 +42,8 @@ module.exports = UpdatesManager = if lastCompressedUpdate? MongoManager.insertCompressedUpdates project_id, doc_id, [lastCompressedUpdate], temporary, () -> return callback error - return + else + return callback error compressedUpdates = UpdateCompressor.compressRawUpdates lastCompressedUpdate, rawUpdates