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 else
callback null, null callback null, null
insertCompressedUpdates: (project_id, doc_id, updates, permanent, callback = (error) ->) -> insertCompressedUpdates: (project_id, doc_id, updates, temporary, callback = (error) ->) ->
jobs = [] jobs = []
for update in updates for update in updates
do (update) -> 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 async.series jobs, callback
insertCompressedUpdate: (project_id, doc_id, update, temporary, callback = (error) ->) -> insertCompressedUpdate: (project_id, doc_id, update, temporary, callback = (error) ->) ->