feat: 수강중 확인 기능 수정

This commit is contained in:
박정민 2024-08-01 13:18:42 +09:00
parent cdf8dbc30e
commit 6c36715a25
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ public interface RegistrationService {
List<RegistrationSearchResponse> searchRegistrations(Long LectureId);
RegistrationStatus isOnline(Long userId, Long lectureId);
RegistrationStatus getStatus(Long userId, Long lectureId);
}

View File

@ -88,7 +88,7 @@ public class RegistrationServiceImpl implements RegistrationService {
}
@Override
public RegistrationStatus isOnline(Long userId, Long lectureId) {
public RegistrationStatus getStatus(Long userId, Long lectureId) {
Registration registration = registrationRepository.findByUserIdAndLectureId(userId, lectureId);
return registration.getStatus();