diff --git a/src/institucion/entity/institucion.entity.ts b/src/institucion/entity/institucion.entity.ts index 645fdb4..4823fea 100644 --- a/src/institucion/entity/institucion.entity.ts +++ b/src/institucion/entity/institucion.entity.ts @@ -14,7 +14,7 @@ export class Institucion { @Column({ type: Number, nullable: false, default: 7 }) dias_multa_retraso: number; - @Column({ type: String, nullable: false }) + @Column({ type: String, nullable: false, length: 150 }) institucion: string; @Column({ type: String, nullable: false, length: 50 }) diff --git a/src/institucion/institucion.controller.ts b/src/institucion/institucion.controller.ts index fd056d5..a3baeb0 100644 --- a/src/institucion/institucion.controller.ts +++ b/src/institucion/institucion.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get } from '@nestjs/common'; +import { Controller, Get, Put } from '@nestjs/common'; import { InstitucionService } from './institucion.service'; @Controller('institucion') @@ -9,4 +9,7 @@ export class InstitucionController { get() { return this.institucionService.findAll(); } + + @Put() + update() {} }