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 {