Merge branch 'be/Lecture' into 'backend'

feat: Lecture 내 강의 조회 수정

See merge request s11-webmobile1-sub2/S11P12A701!47
This commit is contained in:
김한얼 2024-08-05 16:25:10 +09:00
commit 285e19dc89

View File

@ -205,6 +205,7 @@ public class LectureServiceImpl implements LectureService {
for (Registration registration : registrationList) {
Lecture lecture = registration.getLecture();
if (registration.getStatus() == RegistrationStatus.ACCEPTED) {
LectureSearchResponse lectureSearchResponse = LectureSearchResponse.builder()
.id(lecture.getId())
.title(lecture.getTitle())
@ -213,6 +214,7 @@ public class LectureServiceImpl implements LectureService {
myLectureList.add(lectureSearchResponse);
}
}
}
return myLectureList;
}
@ -235,12 +237,9 @@ public class LectureServiceImpl implements LectureService {
Lecture l;
l = lecture.get();
if(l.isOnline())
{
if (l.isOnline()) {
l.setOnline(false);
}
else
{
} else {
l.setOnline(true);
}