pr feedback

This commit is contained in:
martabal 2023-12-02 14:36:15 +01:00
parent 7818aeebf2
commit abaaa4def6
No known key found for this signature in database
GPG key ID: C00196E3148A52BD

View file

@ -11,6 +11,7 @@ import {
IsNotEmpty,
IsPositive,
IsString,
Max,
Min,
ValidateIf,
} from 'class-validator';
@ -204,6 +205,8 @@ export class AssetBulkUpdateDto extends BulkIdsDto {
longitude?: number;
@Optional()
@Min(1)
@Max(8)
@IsInt()
@Type(() => Number)
orientation?: number;
@ -237,6 +240,8 @@ export class UpdateAssetDto {
longitude?: number;
@Optional()
@Min(1)
@Max(8)
@IsInt()
@Type(() => Number)
orientation?: number;