fix type errors caused by dependency updates

This commit is contained in:
Hazelnoot 2025-09-24 03:06:16 -04:00
parent 5234b92898
commit 681afb2d9f
6 changed files with 13 additions and 13 deletions

View file

@ -896,7 +896,7 @@ export class QueueService implements OnModuleInit {
@bindThis
public async queueRetryJob(queueType: typeof QUEUE_TYPES[number], jobId: string) {
const queue = this.getQueue(queueType);
const job: Bull.Job | null = await queue.getJob(jobId);
const job: Bull.Job | undefined = await queue.getJob(jobId);
if (job) {
if (job.finishedOn != null) {
await job.retry();
@ -909,7 +909,7 @@ export class QueueService implements OnModuleInit {
@bindThis
public async queueRemoveJob(queueType: typeof QUEUE_TYPES[number], jobId: string) {
const queue = this.getQueue(queueType);
const job: Bull.Job | null = await queue.getJob(jobId);
const job: Bull.Job | undefined = await queue.getJob(jobId);
if (job) {
await job.remove();
}
@ -943,7 +943,7 @@ export class QueueService implements OnModuleInit {
@bindThis
public async queueGetJob(queueType: typeof QUEUE_TYPES[number], jobId: string) {
const queue = this.getQueue(queueType);
const job: Bull.Job | null = await queue.getJob(jobId);
const job: Bull.Job | undefined = await queue.getJob(jobId);
if (job) {
return this.packJobData(job);
} else {