Skip to content

Commit e383a4d

Browse files
committed
fix for QueueManager.test.ts
1 parent 30a40d8 commit e383a4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/services/QueueManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class QueueManager {
3030
}
3131

3232
protected getQueue(queueName: string = ""): Queue {
33-
return new Queue(queueName ?? this.config.redisDefaultQueueName, this.queueBaseOptions);
33+
return new Queue(queueName || this.config.redisDefaultQueueName, this.queueBaseOptions);
3434
}
3535

3636
public getWorker(callback: Processor, queueName: string = ""): Worker {
3737
const options: WorkerOptions = this.queueBaseOptions;
3838
options.lockDuration = this.config.redisLockDuration;
39-
return new Worker(queueName ?? this.config.redisDefaultQueueName, callback, options);
39+
return new Worker(queueName || this.config.redisDefaultQueueName, callback, options);
4040
}
4141

4242
protected getQueueNameForJob(jobName: string): string {

0 commit comments

Comments
 (0)