Skip to content

Commit

Permalink
Fix support for BullMQ
Browse files Browse the repository at this point in the history
Per bee-queue#209, the `bullmq` package doesn't return a single constructor, so docker-arena needs to instantiate the `Queue` class specifically.
  • Loading branch information
spiffytech authored Dec 7, 2021
1 parent 5976afa commit d6f3027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Arena({
return Bee || (Bee = require('bee-queue'));
},
get BullMQ() {
return BullMQ || (BullMQ = require('bullmq'));
return BullMQ || (BullMQ = require('bullmq').Queue);
},
});

0 comments on commit d6f3027

Please sign in to comment.