Skip to content

Commit

Permalink
fix: revert support for older BullMQ versions
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Nov 15, 2024
1 parent 40ece46 commit 00fd989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/queueAdapters/bullMQ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class BullMQAdapter extends BaseAdapter {
constructor(private queue: Queue, options: Partial<QueueAdapterOptions> = {}) {
const libName = 'bullmq';
super(libName, options);
if (!(queue.metaValues?.version as string).startsWith(libName)) {
if (!(queue instanceof Queue) || !(queue.metaValues?.version as string)?.startsWith(libName)) {
throw new Error(`You've used the BullMQ adapter with a non-BullMQ queue.`);
}
}
Expand Down

0 comments on commit 00fd989

Please sign in to comment.