fix pack migration to run sequentially not in parallel

This commit is contained in:
Brian Gough 2015-02-23 17:00:43 +00:00
parent ff7860b6dc
commit 09e24413e6

View file

@ -66,7 +66,7 @@ packDocHistory = (doc_id, callback) ->
util.log "docs #{origDocs} packs #{packs.length}" util.log "docs #{origDocs} packs #{packs.length}"
if packs.length if packs.length
async.each packs, insertPack, (err, result) -> async.eachSeries packs, insertPack, (err, result) ->
if err? if err?
console.log doc_id, err console.log doc_id, err
else else