mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): don't expose source types in face creation api (#16381)
* don't expose source types in face creation api * update open-api * remove source type reference from web
This commit is contained in:
parent
967c69317b
commit
7d6cfd09e6
6 changed files with 4 additions and 27 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsArray, IsEnum, IsInt, IsNotEmpty, IsNumber, IsString, Max, Min, ValidateNested } from 'class-validator';
|
||||
import { IsArray, IsInt, IsNotEmpty, IsNumber, IsString, Max, Min, ValidateNested } from 'class-validator';
|
||||
import { DateTime } from 'luxon';
|
||||
import { PropertyLifecycle } from 'src/decorators';
|
||||
import { AuthDto } from 'src/dtos/auth.dto';
|
||||
|
|
@ -194,10 +194,6 @@ export class AssetFaceCreateDto extends AssetFaceUpdateItem {
|
|||
@IsNotEmpty()
|
||||
@IsNumber()
|
||||
height!: number;
|
||||
|
||||
@ApiProperty({ type: 'string', enum: SourceType, enumName: 'SourceType' })
|
||||
@IsEnum(SourceType)
|
||||
sourceType: SourceType = SourceType.MANUAL;
|
||||
}
|
||||
|
||||
export class AssetFaceDeleteDto {
|
||||
|
|
|
|||
|
|
@ -736,7 +736,7 @@ export class PersonService extends BaseService {
|
|||
boundingBoxX2: dto.x + dto.width,
|
||||
boundingBoxY1: dto.y,
|
||||
boundingBoxY2: dto.y + dto.height,
|
||||
sourceType: dto.sourceType,
|
||||
sourceType: SourceType.MANUAL,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue