se agregó una relación
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user