mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-14 07:45:39 +01:00
change validation
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { IsEnum, IsInt, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
import { IsEnum, IsNotEmpty, IsString } from 'class-validator';
|
||||
import { SysPreferences } from '../dto/syspreferences.dto';
|
||||
import { EntityID } from '../validators/entity-id.validator';
|
||||
|
||||
export class ESysPreference {
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@EntityID()
|
||||
id?: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
|
||||
Reference in New Issue
Block a user