fix(server): exclude archived assets from orphaned files (#7334)

* fix(server): exclude archived assets from orphaned files

* add e2e test
This commit is contained in:
Michel Heusschen
2024-02-22 17:16:10 +01:00
committed by GitHub
parent b3131dfe14
commit 07ef008b40
4 changed files with 68 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ export class AuditService {
`Found ${libraryFiles.size} original files, ${thumbFiles.size} thumbnails, ${videoFiles.size} encoded videos, ${profileFiles.size} profile files`,
);
const pagination = usePagination(JOBS_ASSET_PAGINATION_SIZE, (options) =>
this.assetRepository.getAll(options, { withDeleted: true }),
this.assetRepository.getAll(options, { withDeleted: true, withArchived: true }),
);
let assetCount = 0;