feat: 오류수정

This commit is contained in:
박정민 2024-08-01 15:21:52 +09:00
parent 693e69c7d1
commit 3cc05cb961
2 changed files with 7 additions and 7 deletions

View File

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

View File

@ -87,11 +87,11 @@ public class RegistrationServiceImpl implements RegistrationService {
return responses;
}
@Override
public RegistrationStatus getStatus(Long userId, Long lectureId) {
Registration registration = registrationRepository.findByUserIdAndLectureId(userId, lectureId);
return registration.getStatus();
}
// @Override
// public RegistrationStatus getStatus(Long userId, Long lectureId) {
//
// Registration registration = registrationRepository.findByUserIdAndLectureId(userId, lectureId);
// return registration.getStatus();
// }
}