profile modified

This commit is contained in:
IO
2024-06-25 22:22:08 -06:00
parent 1e290ca90a
commit 43f688d75b
+5 -1
View File
@@ -161,7 +161,11 @@ export class ProfesorService {
//brings teachers by id
async profile(id_profesor: number) {
const profesor = await this.profesorRepository.findOne({ where: { id_profesor } });
const profesor = await this.profesorRepository.findOne({
where: { id_profesor },
relations: ['proyectosAcademicos', 'datosAcademicos', 'lineasInvestigacion'],
});
if (!profesor) {
throw new HttpException('Profesor not found', 404);
}