diff --git a/services/track-changes/app/coffee/MongoManager.coffee b/services/track-changes/app/coffee/MongoManager.coffee index 7fe7d2ab4f..ce97bee016 100644 --- a/services/track-changes/app/coffee/MongoManager.coffee +++ b/services/track-changes/app/coffee/MongoManager.coffee @@ -150,7 +150,7 @@ module.exports = MongoManager = db.docHistory.update { _id: update._id }, { $set : { inS3 : false } }, callback clearDocHistoryAsArchiveInProgress: (doc_id, update, callback) -> - db.docHistory.update { _id: update._id }, { $set : { inS3 : false } }, callback + db.docHistory.update { _id: update._id }, { $unset : { inS3 : true } }, callback markDocHistoryAsArchived: (doc_id, update, callback)-> db.docHistory.update { _id: update._id }, { $set : { inS3 : true } }, (error)->