From e9efb35cde66c68d6cf8a9ff2eaec9a635f12d47 Mon Sep 17 00:00:00 2001 From: Matej Sima Date: Mon, 25 Nov 2024 11:19:45 +0100 Subject: [PATCH] change bullmq's oncompleted result parsing --- packages/deployment/src/queue/BullQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deployment/src/queue/BullQueue.ts b/packages/deployment/src/queue/BullQueue.ts index c7fe8d5e..36e646d5 100644 --- a/packages/deployment/src/queue/BullQueue.ts +++ b/packages/deployment/src/queue/BullQueue.ts @@ -77,7 +77,7 @@ export class BullQueue async onCompleted(listener: (payload: TaskPayload) => Promise) { events.on("completed", async (result) => { // eslint-disable-next-line @typescript-eslint/consistent-type-assertions - await listener(JSON.parse(result.returnvalue) as TaskPayload); + await listener(result.returnvalue as unknown as TaskPayload); }); await events.waitUntilReady(); },