From 7b48e43d92839a561d9479f1f24cfcf77c967d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 28 Oct 2016 12:29:28 +0200 Subject: [PATCH] Rename --- batch/job_backend.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/batch/job_backend.js b/batch/job_backend.js index df43f13d..0852e6b1 100644 --- a/batch/job_backend.js +++ b/batch/job_backend.js @@ -209,17 +209,17 @@ JobBackend.prototype.listWorkInProgressJob = function (callback) { usersQueue.defer(this.listWorkInProgressJobByUser.bind(this), userName); }.bind(this)); - usersQueue.awaitAll(function (err, results) { + usersQueue.awaitAll(function (err, userWorkInProgressJobs) { if (err) { return callback(err); } - var usersRes = userNames.reduce(function (users, userName, index) { - users[userName] = results[index]; + var workInProgressJobs = userNames.reduce(function (users, userName, index) { + users[userName] = userWorkInProgressJobs[index]; return users; }, {}); - callback(null, usersRes); + callback(null, workInProgressJobs); }); }.bind(this));