From 656126919b2d3520965afe2ee7e20c57bc6f6384 Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Thu, 5 Feb 2026 11:58:59 -0600 Subject: [PATCH] =?UTF-8?q?se=20cambi=C3=B3=20la=20estructura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/excel/excel.service.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/excel/excel.service.ts b/src/excel/excel.service.ts index d68d0b3..d21a1c4 100644 --- a/src/excel/excel.service.ts +++ b/src/excel/excel.service.ts @@ -813,16 +813,8 @@ export class ExcelService { } finally { await queryRunner.release(); - const subQuery = await this.servActivosRepo.manager + await this.servActivosRepo .createQueryBuilder() - .select('1') - .from(Usuario, 'u') - .where('u.id_usuario = sa.id_usuario') - .andWhere('u.id_usuario IN (:...ids)') - .getQuery(); - -await this.servActivosRepo - .createQueryBuilder('sa') .update() .set({ Red: false, @@ -834,10 +826,10 @@ await this.servActivosRepo ATStatus: 'Inactivo', CorreoStatus: 'Inactivo', }) - .where(`NOT EXISTS (${subQuery})`) - .setParameters({ ids: idsUsuarios }) + .where('id_usuario NOT IN (SELECT id_usuario FROM usuario)') .execute(); + } }