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 })