fix callback logic in compressAndSaveRawUpdates

This commit is contained in:
Brian Gough 2015-10-08 16:39:13 +01:00
parent 8226bf3be4
commit b6dae59655

View file

@ -43,7 +43,8 @@ module.exports = UpdatesManager =
MongoManager.insertCompressedUpdates project_id, doc_id, [lastCompressedUpdate], temporary, () ->
return callback error
else
return callback error
callback error
return
compressedUpdates = UpdateCompressor.compressRawUpdates lastCompressedUpdate, rawUpdates