|
@@ -59,6 +59,6 @@ public class CourseSelectionService {
|
|
|
key.setUserId(userId);
|
|
key.setUserId(userId);
|
|
|
key.setCourseId(courseId);
|
|
key.setCourseId(courseId);
|
|
|
Optional<CourseSelection> record = courseSelectionRepository.findById(key);
|
|
Optional<CourseSelection> record = courseSelectionRepository.findById(key);
|
|
|
- return record.isPresent();
|
|
|
|
|
|
|
+ return record.isPresent() && record.get().getState();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|