Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
fix: enhanced getMeta to auto provide queue
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Sep 13, 2019
1 parent 712f174 commit e36d82c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ class Bull {

// get meta information about the queue for logging purposes
getMeta(opts) {
if (!opts.queue && opts.job && opts.job.queue) opts.queue = opts.job.queue;
if (!opts.queue) throw new Error('getMeta must be passed opts.queue');
return {
...opts,
Expand Down

0 comments on commit e36d82c

Please sign in to comment.