Improve var definitions

This commit is contained in:
Daniel García Aubert 2016-10-27 20:43:42 +02:00
parent 0085b8ee3d
commit 72419072ea

View File

@ -198,8 +198,8 @@ JobBackend.prototype.listWorkInProgressJob = function (callback) {
return callback(err);
}
var usersQueue = queue(Object.keys(users).length);
var usersName = Object.keys(users);
var usersQueue = queue(usersName.length);
usersName.forEach(function (userKey) {
usersQueue.defer(this.listWorkInProgressJobByUser.bind(this), userKey);