Browse Source

fix(core): Add missing jobOptions to a strategy `jobQueueStrategy.add` function (#2770)

Eugene Nitsenko 1 year ago
parent
commit
f869a172d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/job-queue/job-queue.ts

+ 1 - 1
packages/core/src/job-queue/job-queue.ts

@@ -99,7 +99,7 @@ export class JobQueue<Data extends JobData<Data> = object> {
 
         const isBuffered = await this.jobBufferService.add(job);
         if (!isBuffered) {
-            const addedJob = await this.jobQueueStrategy.add(job);
+            const addedJob = await this.jobQueueStrategy.add(job, options);
             return new SubscribableJob(addedJob, this.jobQueueStrategy);
         } else {
             const bufferedJob = new Job({