Final commit
This commit is contained in:
parent
4485dbf803
commit
fa1a2c6d3b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user