瀏覽代碼

fix pack migration to run sequentially not in parallel

Brian Gough 11 年之前
父節點
當前提交
09e24413e6
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/track-changes/pack.coffee

+ 1 - 1
services/track-changes/pack.coffee

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