Skip to content

Commit

Permalink
fix(scripts): add missing wait in isJobInList
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Oct 18, 2024
1 parent e7f0826 commit 9ef865c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9ef865c

Please sign in to comment.