update librerias

This commit is contained in:
2022-08-23 17:12:09 -05:00
parent 7f7dfbe9c1
commit 2a031a7658
25 changed files with 2775 additions and 3297 deletions
@@ -69,7 +69,7 @@ export class EquipoProgramaService {
'No puedes eliminar el software de este equipo porque no pertenece a tu institución.',
);
return this.repository
.count({ equipo: equipoPrograma.equipo })
.count({ where: { equipo: equipoPrograma.equipo } })
.then(async (n) => {
if (n === 1) {
if (equipoPrograma.programa.id_programa === 1)
@@ -111,7 +111,7 @@ export class EquipoProgramaService {
validarExistencia = true,
) {
return this.repository
.findOne({ equipo, programa })
.findOne({ where: { equipo, programa } })
.then((equipoPrograma) => {
if (validarExistencia && equipoPrograma)
throw new ConflictException(