From f869a172d27a44ce5053b594c51c578d2eb87c6b Mon Sep 17 00:00:00 2001 From: Eugene Nitsenko Date: Mon, 8 Apr 2024 14:50:38 +0200 Subject: [PATCH] fix(core): Add missing jobOptions to a strategy `jobQueueStrategy.add` function (#2770) --- packages/core/src/job-queue/job-queue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/job-queue/job-queue.ts b/packages/core/src/job-queue/job-queue.ts index 44fefaf548..0683985eef 100644 --- a/packages/core/src/job-queue/job-queue.ts +++ b/packages/core/src/job-queue/job-queue.ts @@ -99,7 +99,7 @@ export class JobQueue = 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({