From a8d499b8fda66b53464c3ab248e40974b8e0ace9 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Sun, 8 Jan 2023 17:49:28 -0600 Subject: [PATCH] =?UTF-8?q?editar=20instituci=C3=B3n=20admin=20corregido?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modulo/modulo.controller.ts | 4 +--- src/operador/operador.service.ts | 3 ++- src/upload-file/upload-file.controller.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/modulo/modulo.controller.ts b/src/modulo/modulo.controller.ts index 84cc29a..3d673b8 100644 --- a/src/modulo/modulo.controller.ts +++ b/src/modulo/modulo.controller.ts @@ -74,9 +74,7 @@ export class ModuloController { @Serealize(OnlyModuloOutputDto) @Get('modulos') @UseGuards(AuthGuard('jwt')) - @ApiOperation({ - description: 'Todos los módulos de una institución.', - }) + @ApiOperation({ description: 'Todos los módulos de una institución.' }) @ApiBearerAuth('jwt') modulos(@Request() req, @Query() query: IdInstitucionDto) { const superAdmin: Operador = req.user.operador; diff --git a/src/operador/operador.service.ts b/src/operador/operador.service.ts index c478e50..36fa263 100644 --- a/src/operador/operador.service.ts +++ b/src/operador/operador.service.ts @@ -132,6 +132,7 @@ export class OperadorService { return this.fullInformacionOperadorView .findAndCount({ where: busqueda, + order: { operador: 'ASC' }, take: 25, skip: (parseInt(filtros.pagina) - 1) * 25, }) @@ -164,6 +165,7 @@ export class OperadorService { return this.repository.find({ select: ['id_operador', 'operador'], where: { institucion: admin.institucion }, + order: { operador: 'ASC' }, }); } @@ -215,7 +217,6 @@ export class OperadorService { ): Promise<{ message: string }> { return this.findById(id_operador) .then((operador) => { - console.log(operador); this.validarUpdate(admin, operador); // Generamos un password por si no se mando uno if (!password) password = this.bcryptService.generarPassword(); diff --git a/src/upload-file/upload-file.controller.ts b/src/upload-file/upload-file.controller.ts index 6622c89..41707d8 100644 --- a/src/upload-file/upload-file.controller.ts +++ b/src/upload-file/upload-file.controller.ts @@ -113,7 +113,7 @@ export class UploadFileController { @ApiBody({ schema: { type: 'object', - properties: { csv: { type: 'string', format: 'binary' } }, + properties: { logo: { type: 'string', format: 'binary' } }, }, }) uploadLogo(@Request() req, @UploadedFile() file: Express.Multer.File) {