From fa1a2c6d3bc926b78b9cd4f6e341f55391618c2e Mon Sep 17 00:00:00 2001 From: Wawilski Date: Sun, 21 Apr 2024 19:13:03 +0200 Subject: [PATCH] Final commit --- .../ovh/herisson/Clyde/Services/LessonRequestService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/ovh/herisson/Clyde/Services/LessonRequestService.java b/backend/src/main/java/ovh/herisson/Clyde/Services/LessonRequestService.java index 0343ad2..21a6732 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Services/LessonRequestService.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Services/LessonRequestService.java @@ -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);