From 9ef865c7de6086cb3c906721fd046aeed1e0d27f Mon Sep 17 00:00:00 2001 From: Manuel Astudillo Date: Fri, 18 Oct 2024 11:41:15 +0200 Subject: [PATCH] fix(scripts): add missing wait in isJobInList --- src/classes/scripts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/scripts.ts b/src/classes/scripts.ts index cafcf97074..786874cfa8 100644 --- a/src/classes/scripts.ts +++ b/src/classes/scripts.ts @@ -86,7 +86,7 @@ export class Scripts { const client = await this.queue.client; let result; if (isRedisVersionLowerThan(this.queue.redisVersion, '6.0.6')) { - result = this.execCommand(client, 'isJobInList', [listKey, jobId]); + result = await this.execCommand(client, 'isJobInList', [listKey, jobId]); } else { result = await client.lpos(listKey, jobId); }