fix(server): include trashed assets in forced thumbnail generation (#10389)

* fix(server): include trashed assets in forced thumbnail generation

* deleted -> trashed
This commit is contained in:
Michel Heusschen
2024-06-16 17:37:51 +02:00
committed by GitHub
parent 83a851b556
commit 010eb1e0d6
3 changed files with 66 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ export class MediaService {
async handleQueueGenerateThumbnails({ force }: IBaseJob): Promise<JobStatus> {
const assetPagination = usePagination(JOBS_ASSET_PAGINATION_SIZE, (pagination) => {
return force
? this.assetRepository.getAll(pagination, { isVisible: true })
? this.assetRepository.getAll(pagination, { isVisible: true, withDeleted: true })
: this.assetRepository.getWithout(pagination, WithoutProperty.THUMBNAIL);
});