allow new client instant to be passed on job creation

This commit is contained in:
2016-06-06 14:16:46 -07:00
parent 40c8d15562
commit dcecd4020b

View File

@@ -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;