fix(server, web): reassigning faces (#9265)

* fix: reassiging faces

* fix: rename
This commit is contained in:
martin
2024-05-05 20:16:44 +02:00
committed by GitHub
parent 090592e5ae
commit cf79bc9ed7
6 changed files with 50 additions and 27 deletions

View File

@@ -227,21 +227,29 @@ export class AssetService {
async get(auth: AuthDto, id: string): Promise<AssetResponseDto | SanitizedAssetResponseDto> {
await this.access.requirePermission(auth, Permission.ASSET_READ, id);
const asset = await this.assetRepository.getById(id, {
exifInfo: true,
tags: true,
sharedLinks: true,
smartInfo: true,
owner: true,
faces: {
person: true,
},
stack: {
assets: {
exifInfo: true,
const asset = await this.assetRepository.getById(
id,
{
exifInfo: true,
tags: true,
sharedLinks: true,
smartInfo: true,
owner: true,
faces: {
person: true,
},
stack: {
assets: {
exifInfo: true,
},
},
},
});
{
faces: {
boundingBoxX1: 'ASC',
},
},
);
if (!asset) {
throw new BadRequestException('Asset not found');