Skip to content
Snippets Groups Projects
Commit 34aa64f6 authored by Nabilsenko's avatar Nabilsenko
Browse files

fix: made numEtu optional

parent 78cbccab
No related branches found
No related tags found
1 merge request!19fix: made numEtu optional
...@@ -3,7 +3,7 @@ import { IsBoolean, IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-val ...@@ -3,7 +3,7 @@ import { IsBoolean, IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-val
export class CreatePeopleDto { export class CreatePeopleDto {
@IsNumber() @IsNumber()
@IsNotEmpty() @IsOptional()
numetu: number; numetu: number;
@IsString() @IsString()
......
...@@ -3,7 +3,7 @@ import { IsOptional, IsString, IsNotEmpty, IsNumber } from 'class-validator'; ...@@ -3,7 +3,7 @@ import { IsOptional, IsString, IsNotEmpty, IsNumber } from 'class-validator';
export class UpdatePeopleDto { export class UpdatePeopleDto {
@IsNumber() @IsNumber()
@IsNotEmpty() @IsOptional()
numetu: number; numetu: number;
@IsString() @IsString()
......
...@@ -21,7 +21,6 @@ export class People { ...@@ -21,7 +21,6 @@ export class People {
@Prop({ @Prop({
type: Number, type: Number,
required: true,
}) numetu: number; }) numetu: number;
@Prop({ @Prop({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment