se agregó una relación

This commit is contained in:
evenegas
2026-01-16 09:40:32 -06:00
parent ad7fd3b513
commit 617f4fe5bb
+1 -1
View File
@@ -725,7 +725,7 @@ export class ServicioService {
// 🔹 Validar Usuario
const usuario = await this.usuarioRepo.findOne({
where: { idUsuario: dto.idUsuario },
where: { idUsuario: dto.idUsuario }, relations: ['tipoUsuario'],
});
if (!usuario)
throw new NotFoundException('Este alumno no existe en la db.');