Просмотр исходного кода

fix pack migration to run sequentially not in parallel

Brian Gough 11 лет назад
Родитель
Сommit
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