pass the entire queue to the Job instance
This commit is contained in:
@@ -49,7 +49,7 @@ export default class Esqueue extends events.EventEmitter {
|
||||
indexSettings: this.settings.indexSettings,
|
||||
});
|
||||
|
||||
return new Job(this.client, index, type, payload, options);
|
||||
return new Job(this, index, type, payload, options);
|
||||
}
|
||||
|
||||
registerWorker(type, workerFn, opts) {
|
||||
|
||||
Reference in New Issue
Block a user