Răsfoiți Sursa

mapSeries -> eachSeries

James Allen 10 ani în urmă
părinte
comite
6ca48523d9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      services/document-updater/app/coffee/UpdateManager.coffee

+ 1 - 1
services/document-updater/app/coffee/UpdateManager.coffee

@@ -39,7 +39,7 @@ module.exports = UpdateManager =
 			return callback(error) if error?
 			return callback(error) if error?
 			if updates.length == 0
 			if updates.length == 0
 				return callback()
 				return callback()
-			async.mapSeries updates,
+			async.eachSeries updates,
 				(update, cb) -> UpdateManager.applyUpdate project_id, doc_id, update, cb
 				(update, cb) -> UpdateManager.applyUpdate project_id, doc_id, update, cb
 				callback
 				callback