From c94fded79ef3aeae999eb0b6d2eed195982be63a Mon Sep 17 00:00:00 2001 From: lemuel Date: Mon, 11 Jul 2022 02:44:09 -0500 Subject: [PATCH] error tonto --- src/institucion/dto/input/update.dto.ts | 2 +- src/institucion/entity/institucion.entity.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/institucion/dto/input/update.dto.ts b/src/institucion/dto/input/update.dto.ts index f0ed919..8f2bfdc 100644 --- a/src/institucion/dto/input/update.dto.ts +++ b/src/institucion/dto/input/update.dto.ts @@ -17,7 +17,7 @@ export class UpdateInstitucionDto { @IsEmail() @IsOptional() - correo?: number; + correo?: string; @IsNumber() @IsOptional() diff --git a/src/institucion/entity/institucion.entity.ts b/src/institucion/entity/institucion.entity.ts index af589cf..34112c6 100644 --- a/src/institucion/entity/institucion.entity.ts +++ b/src/institucion/entity/institucion.entity.ts @@ -19,7 +19,7 @@ export class Institucion { @Column({ type: String, nullable: true, length: 4 }) clave: string; - @Column({ type: String, nullable: false, length: 60, default: '' }) + @Column({ type: String, nullable: true, length: 60, default: '' }) correo: string; @Column({ type: Number, nullable: false, default: 7 })