Skip to content

Commit

Permalink
feat(server): add missing thumbnail check to nightly jobs (#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasm91 committed May 22, 2023
1 parent dbc4884 commit a9f15c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/libs/domain/src/job/job.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }],
]);
});
});
Expand Down
1 change: 1 addition & 0 deletions server/libs/domain/src/job/job.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
Expand Down

0 comments on commit a9f15c0

Please sign in to comment.