Skip to content

Commit

Permalink
change bullmq's oncompleted result parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
maht0rz committed Nov 25, 2024
1 parent a1e66b4 commit e9efb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/deployment/src/queue/BullQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class BullQueue
async onCompleted(listener: (payload: TaskPayload) => Promise<void>) {
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();
},
Expand Down

0 comments on commit e9efb35

Please sign in to comment.