From 9cfc080b64fd7b8714ed3413403453ca9e9c13e8 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Mon, 11 Jul 2016 11:30:36 -0700 Subject: [PATCH] emit events on queue instance --- src/job.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/job.js b/src/job.js index 6b82e55..c1a0b62 100644 --- a/src/job.js +++ b/src/job.js @@ -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(() => {