1
0
forked from PGL/Clyde

Final commit

This commit is contained in:
Wawilski 2024-04-21 19:13:03 +02:00
parent 4485dbf803
commit fa1a2c6d3b

View File

@ -74,8 +74,8 @@ public class LessonRequestService {
if(lessonRequest == null || state == lessonRequest.getState() || state == null){
return false;}
if (state == RequestState.Accepted){
Course course = courseRepository.findById(lessonRequest.getCourse().getCourseId());
if(courseRepository.findById(lessonRequest.getCourse().getCourseId())==null|| local == null){
Course course = courseRepository.findById(lessonRequest.getCourse().getCourseID());
if(courseRepository.findById(lessonRequest.getCourse().getCourseID())==null|| local == null){
return false;}
Lesson lesson = new Lesson();
lesson.setCourse(course);