intitucion dto input
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import {
|
||||
IsString,
|
||||
} from 'class-validator';
|
||||
|
||||
export class InstitucionUpdateDto {
|
||||
export class UpdateInstitucionDto {
|
||||
@IsInt()
|
||||
id_institucion: number;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ApiBody, ApiOperation, ApiQuery, ApiTags } from '@nestjs/swagger';
|
||||
import { Serealize } from '../interceptors/serialize.interceptor';
|
||||
import { InstitucionService } from './institucion.service';
|
||||
import { IdInstitucionDto } from '../dto/id-institucion.dto';
|
||||
import { InstitucionUpdateDto } from './dto/institucion-update.dto';
|
||||
import { UpdateInstitucionDto } from './dto/input/update.dto';
|
||||
import { InstitucionOutputDto } from './dto/output/institucion.dto';
|
||||
import { InstitucionesOutputDto } from './dto/output/instituciones.dto';
|
||||
|
||||
@@ -64,7 +64,7 @@ export class InstitucionController {
|
||||
},
|
||||
},
|
||||
})
|
||||
update(@Body() body: InstitucionUpdateDto) {
|
||||
update(@Body() body: UpdateInstitucionDto) {
|
||||
return this.institucionService.update(body);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user