Skip to content
Snippets Groups Projects
Commit 97bb27d0 authored by Nabilsenko's avatar Nabilsenko
Browse files

fix: made numEtu optional

parent 34aa64f6
Branches updateNumEtu
No related tags found
1 merge request!19fix: made numEtu optional
......@@ -2,9 +2,9 @@ import { IsBoolean, IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-val
export class CreatePeopleDto {
@IsNumber()
@IsString()
@IsOptional()
numetu: number;
numetu: string;
@IsString()
@IsNotEmpty()
......
......@@ -2,9 +2,9 @@ import { IsOptional, IsString, IsNotEmpty, IsNumber } from 'class-validator';
export class UpdatePeopleDto {
@IsNumber()
@IsString()
@IsOptional()
numetu: number;
numetu: string;
@IsString()
@IsOptional()
......
......@@ -2,7 +2,7 @@ import { People } from '../schemas/people.schema';
export class PeopleEntity {
_id: string;
numetu: number;
numetu: string;
firstname: string;
lastname: string;
email: string;
......
......@@ -20,8 +20,9 @@ export class People {
_id: any;
@Prop({
type: Number,
}) numetu: number;
type: String,
trim: true,
}) numetu: string;
@Prop({
type: String,
......
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