This commit is contained in:
2024-06-26 16:07:11 -06:00
parent a7175979c3
commit a210ac3d66
2 changed files with 1 additions and 13 deletions
+1 -10
View File
@@ -151,19 +151,10 @@ export class ProfesorService {
throw new HttpException('Profesor not found', 404);
}
// Delete related records if corresponding services are available
if (this.datosAcademicosService) {
await this.datosAcademicosService.removeByProfesorId(id_profesor);
}
if (this.lineasInvestigacionService) {
await this.lineasInvestigacionService.removeByProfesorId(id_profesor);
}
if (this.proyectosAcademicosService) {
await this.proyectosAcademicosService.removeByProfesorId(id_profesor);
}
await this.profesorRepository.remove(profesor);
return { message: 'Profesor removed successfully' };
}
-3
View File
@@ -56,9 +56,6 @@ import { ProyectosAcademicosModule } from './proyectos_academicos/proyectos_acad
}),
}),
ProfesorModule,
DatosAcademicosModule,
LineasInvestigacionModule,
ProyectosAcademicosModule,
AdscripcionModule,
EdificioModule,
CategoriaModule,