From dcecd4020ba345b941668e3585879f8b899eb86c Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Mon, 6 Jun 2016 14:16:46 -0700 Subject: [PATCH] allow new client instant to be passed on job creation --- src/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/job.js b/src/job.js index 78830dd..5696bcb 100644 --- a/src/job.js +++ b/src/job.js @@ -15,7 +15,7 @@ export default class Job extends events.EventEmitter { super(); - this.client = client; + this.client = options.client || client; this.id = puid.generate(); this.index = index; this.jobtype = type;