Skip to content
Snippets Groups Projects
Commit 6fe3070a authored by Nabilsenko's avatar Nabilsenko
Browse files

fix: change ine to numetu

parent 438026fa
No related branches found
No related tags found
1 merge request!17fix: change ine to numetu
...@@ -4,7 +4,7 @@ export class CreatePeopleDto { ...@@ -4,7 +4,7 @@ export class CreatePeopleDto {
@IsNumber() @IsNumber()
@IsNotEmpty() @IsNotEmpty()
ine: number; numetu: number;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
......
...@@ -4,7 +4,7 @@ export class UpdatePeopleDto { ...@@ -4,7 +4,7 @@ export class UpdatePeopleDto {
@IsNumber() @IsNumber()
@IsNotEmpty() @IsNotEmpty()
ine: number; numetu: number;
@IsString() @IsString()
@IsOptional() @IsOptional()
......
...@@ -2,7 +2,7 @@ import { People } from '../schemas/people.schema'; ...@@ -2,7 +2,7 @@ import { People } from '../schemas/people.schema';
export class PeopleEntity { export class PeopleEntity {
_id: string; _id: string;
ine: number; numetu: number;
firstname: string; firstname: string;
lastname: string; lastname: string;
email: string; email: string;
......
...@@ -22,7 +22,7 @@ export class People { ...@@ -22,7 +22,7 @@ export class People {
@Prop({ @Prop({
type: Number, type: Number,
required: true, required: true,
}) ine: number; }) numetu: number;
@Prop({ @Prop({
type: String, type: String,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment