emit events on queue instance

This commit is contained in:
2016-07-11 11:30:36 -07:00
parent bdd94096db
commit 9cfc080b64

View File

@@ -66,6 +66,11 @@ export default class Job extends events.EventEmitter {
});
}
emit(name, ...args) {
super.emit(name, ...args);
this.queue.emit(name, ...args);
}
get() {
return this.ready
.then(() => {