From 32f3cc29432a2fa0c6f76d0c6f4022508a64de76 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:34:07 -0500 Subject: [PATCH] listo insittucion# --- src/institucion/entity/institucion.entity.ts | 2 +- src/institucion/institucion.controller.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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() {} }