From 0ccb73cf2babc7c4df249a1fbac88392b6e3debc Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Sun, 21 May 2023 22:24:21 -0400 Subject: [PATCH] feat(server): add missing thumbnail check to nightly jobs (#2510) --- server/libs/domain/src/job/job.service.spec.ts | 1 + server/libs/domain/src/job/job.service.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/server/libs/domain/src/job/job.service.spec.ts b/server/libs/domain/src/job/job.service.spec.ts index 5b95ecaa08..b71e808160 100644 --- a/server/libs/domain/src/job/job.service.spec.ts +++ b/server/libs/domain/src/job/job.service.spec.ts @@ -22,6 +22,7 @@ describe(JobService.name, () => { expect(jobMock.queue.mock.calls).toEqual([ [{ name: JobName.USER_DELETE_CHECK }], [{ name: JobName.PERSON_CLEANUP }], + [{ name: JobName.QUEUE_GENERATE_THUMBNAILS, data: { force: false } }], ]); }); }); diff --git a/server/libs/domain/src/job/job.service.ts b/server/libs/domain/src/job/job.service.ts index 26824810aa..a552c01c0d 100644 --- a/server/libs/domain/src/job/job.service.ts +++ b/server/libs/domain/src/job/job.service.ts @@ -14,6 +14,7 @@ export class JobService { async handleNightlyJobs() { await this.jobRepository.queue({ name: JobName.USER_DELETE_CHECK }); await this.jobRepository.queue({ name: JobName.PERSON_CLEANUP }); + await this.jobRepository.queue({ name: JobName.QUEUE_GENERATE_THUMBNAILS, data: { force: false } }); } handleCommand(queueName: QueueName, dto: JobCommandDto): Promise {