diff --git a/services/track-changes/app/coffee/MongoManager.coffee b/services/track-changes/app/coffee/MongoManager.coffee index b1ea5cb180..1b99c53ab8 100644 --- a/services/track-changes/app/coffee/MongoManager.coffee +++ b/services/track-changes/app/coffee/MongoManager.coffee @@ -29,11 +29,11 @@ module.exports = MongoManager = else callback null, null - insertCompressedUpdates: (project_id, doc_id, updates, permanent, callback = (error) ->) -> + insertCompressedUpdates: (project_id, doc_id, updates, temporary, callback = (error) ->) -> jobs = [] for update in updates do (update) -> - jobs.push (callback) -> MongoManager.insertCompressedUpdate project_id, doc_id, update, permanent, callback + jobs.push (callback) -> MongoManager.insertCompressedUpdate project_id, doc_id, update, temporary, callback async.series jobs, callback insertCompressedUpdate: (project_id, doc_id, update, temporary, callback = (error) ->) ->