se cambió el update

This commit is contained in:
2026-02-05 13:13:09 -06:00
parent 656126919b
commit a288c37531
+17 -15
View File
@@ -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();
}