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){
|
if(lessonRequest == null || state == lessonRequest.getState() || state == null){
|
||||||
return false;}
|
return false;}
|
||||||
if (state == RequestState.Accepted){
|
if (state == RequestState.Accepted){
|
||||||
Course course = courseRepository.findById(lessonRequest.getCourse().getCourseId());
|
Course course = courseRepository.findById(lessonRequest.getCourse().getCourseID());
|
||||||
if(courseRepository.findById(lessonRequest.getCourse().getCourseId())==null|| local == null){
|
if(courseRepository.findById(lessonRequest.getCourse().getCourseID())==null|| local == null){
|
||||||
return false;}
|
return false;}
|
||||||
Lesson lesson = new Lesson();
|
Lesson lesson = new Lesson();
|
||||||
lesson.setCourse(course);
|
lesson.setCourse(course);
|
||||||
|
Loading…
Reference in New Issue
Block a user