From a288c37531de1611be6e58c2b97e4733724b228d Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Thu, 5 Feb 2026 13:13:09 -0600 Subject: [PATCH] =?UTF-8?q?se=20cambi=C3=B3=20el=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/excel/excel.service.ts | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/excel/excel.service.ts b/src/excel/excel.service.ts index d21a1c4..15c84e3 100644 --- a/src/excel/excel.service.ts +++ b/src/excel/excel.service.ts @@ -813,21 +813,23 @@ export class ExcelService { } finally { await queryRunner.release(); - await this.servActivosRepo - .createQueryBuilder() - .update() - .set({ - Red: false, - Prestamos: false, - AT: false, - Correo: false, - RedStatus: 'Inactivo', - PrestamosStatus: 'Inactivo', - ATStatus: 'Inactivo', - CorreoStatus: 'Inactivo', - }) - .where('id_usuario NOT IN (SELECT id_usuario FROM usuario)') - .execute(); + await this.servActivosRepo + .createQueryBuilder() + .update() + .set({ + Red: false, + Prestamos: false, + AT: false, + Correo: false, + RedStatus: 'Inactivo', + PrestamosStatus: 'Inactivo', + ATStatus: 'Inactivo', + CorreoStatus: 'Inactivo', + }) + .where('id_usuario NOT IN (:...ids)', { ids: idsUsuarios }) + .execute(); + + }