Compare commits
1 Commits
4485dbf803
...
master
Author | SHA1 | Date | |
---|---|---|---|
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);
|
||||
|
Reference in New Issue
Block a user