fix: remove asset.resized (#11983)

fix: remove resized
This commit is contained in:
Jason Rasmussen
2024-08-22 23:24:49 -04:00
committed by GitHub
parent f69ce6ad8a
commit 7fbf50a75e
18 changed files with 78 additions and 136 deletions

View File

@@ -710,10 +710,7 @@ export class AssetRepository implements IAssetRepository {
}
private getBuilder(options: AssetBuilderOptions) {
const builder = this.repository
.createQueryBuilder('asset')
.where('asset.isVisible = true')
.leftJoinAndSelect('asset.files', 'files');
const builder = this.repository.createQueryBuilder('asset').where('asset.isVisible = true');
if (options.assetType !== undefined) {
builder.andWhere('asset.type = :assetType', { assetType: options.assetType });