pr feedback
This commit is contained in:
parent
7818aeebf2
commit
abaaa4def6
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,7 @@ import {
|
||||||
IsNotEmpty,
|
IsNotEmpty,
|
||||||
IsPositive,
|
IsPositive,
|
||||||
IsString,
|
IsString,
|
||||||
|
Max,
|
||||||
Min,
|
Min,
|
||||||
ValidateIf,
|
ValidateIf,
|
||||||
} from 'class-validator';
|
} from 'class-validator';
|
||||||
|
@ -204,6 +205,8 @@ export class AssetBulkUpdateDto extends BulkIdsDto {
|
||||||
longitude?: number;
|
longitude?: number;
|
||||||
|
|
||||||
@Optional()
|
@Optional()
|
||||||
|
@Min(1)
|
||||||
|
@Max(8)
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Type(() => Number)
|
@Type(() => Number)
|
||||||
orientation?: number;
|
orientation?: number;
|
||||||
|
@ -237,6 +240,8 @@ export class UpdateAssetDto {
|
||||||
longitude?: number;
|
longitude?: number;
|
||||||
|
|
||||||
@Optional()
|
@Optional()
|
||||||
|
@Min(1)
|
||||||
|
@Max(8)
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Type(() => Number)
|
@Type(() => Number)
|
||||||
orientation?: number;
|
orientation?: number;
|
||||||
|
|
Loading…
Reference in a new issue