fix name of temporary parameter to match other methods

This commit is contained in:
Brian Gough 2015-05-22 14:12:29 +01:00
parent adc2866a7d
commit 78f0bdbae3

View file

@ -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) ->) ->