From 9ac9d52f37a79f3330ebdacd06deaaad1fbe62c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Sat, 31 Aug 2024 15:40:04 +0200 Subject: [PATCH] fix bullmq patch --- patches/@bull-board__api@5.21.0.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/@bull-board__api@5.21.0.patch b/patches/@bull-board__api@5.21.0.patch index 88c20ca6..aef1acb4 100644 --- a/patches/@bull-board__api@5.21.0.patch +++ b/patches/@bull-board__api@5.21.0.patch @@ -32,7 +32,7 @@ index 3e5a2e61c9600459678fda0e29397faee7db9a1e..6cf94ac4384d86d99f292c8f296d4b95 + return [] + } + const client = await this.queue.client -+ const scores = await client.zmscore(this.getDelayedScoreName(), jobs.map(job => job.id)) ++ const scores = await client.zmscore(this.getDelayedScoreName(), jobs.filter(job => job && typeof job === 'object').map(job => job.id)) + const delays = jobs.map((_, i) => scores[i] !== null ? scores[i] / 0x1000 : null) + return jobs.map((job, i) => this.transformJob(job, delays[i])) }