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
export class CreatePeopleDto {
@IsNumber()
@IsNotEmpty()
@IsOptional()
numetu: number;
@IsString()
......
......@@ -3,7 +3,7 @@ import { IsOptional, IsString, IsNotEmpty, IsNumber } from 'class-validator';
export class UpdatePeopleDto {
@IsNumber()
@IsNotEmpty()
@IsOptional()
numetu: number;
@IsString()
......
......@@ -21,7 +21,6 @@ export class People {
@Prop({
type: Number,
required: true,
}) numetu: number;
@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