add missing callback in compressAndSaveRawUpdates

This commit is contained in:
Brian Gough 2015-10-08 10:53:25 +01:00
parent 1a4b8f4269
commit add6a68fe1

View file

@ -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