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;