From 551e8334cf629c4b324e549d8566dc50f2c3f3d5 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 23 Sep 2015 13:25:10 +0100 Subject: [PATCH] compressedUpdates are now never inserted with inS3 it is now always added later, and a new update is forced for any addition to an archived update --- services/track-changes/app/coffee/MongoManager.coffee | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/track-changes/app/coffee/MongoManager.coffee b/services/track-changes/app/coffee/MongoManager.coffee index 383cacc198..78627ebbd3 100644 --- a/services/track-changes/app/coffee/MongoManager.coffee +++ b/services/track-changes/app/coffee/MongoManager.coffee @@ -59,7 +59,6 @@ module.exports = MongoManager = insertCompressedUpdate: (project_id, doc_id, update, temporary, callback = (error) ->) -> - inS3 = update.inS3? update = { doc_id: ObjectId(doc_id.toString()) project_id: ObjectId(project_id.toString()) @@ -67,8 +66,6 @@ module.exports = MongoManager = meta: update.meta v: update.v } - if inS3 - update.inS3 = true if temporary seconds = 1000