From e504a48026ebbe06d96e80fa9090ca16ce29811d Mon Sep 17 00:00:00 2001 From: Evan Tahler Date: Mon, 18 Jul 2016 13:19:39 -0700 Subject: [PATCH] worker.performInline needs result and error passed to worker for plugins --- lib/worker.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/worker.js b/lib/worker.js index 6ceb188f..88402966 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -235,6 +235,8 @@ worker.prototype.performInline = function(func, args, callback){ if(toRun === false){ return callback(); } var combinedInputs = [].slice.call(args).concat([function(err, result){ + self.result = result; + self.error = err; returnCounter++; if(err){ return callback(err); } if(returnCounter !== 2){ return callback(callbackError); } diff --git a/package.json b/package.json index f054a2dc..7a565000 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "node-resque", "description": "an opinionated implementation of resque in node", "license": "Apache-2.0", - "version": "2.1.0", + "version": "2.1.1", "homepage": "http://github.com/taskrabbit/node-resque", "repository": { "type": "git",