From add6a68fe1f733b01ace22fda7b445e53ed4eeb0 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 8 Oct 2015 10:53:25 +0100 Subject: [PATCH] add missing callback in compressAndSaveRawUpdates --- services/track-changes/app/coffee/UpdatesManager.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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