se cambió el update
This commit is contained in:
+17
-15
@@ -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();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user