Skip to content

Commit

Permalink
[merge] 모임에 해당하는 신청자 전체 조회 API 로직 수정
Browse files Browse the repository at this point in the history
[hotfix] 모임에 해당하는 신청자 전체 조회 API 로직 수정
  • Loading branch information
lreowy authored Jul 17, 2024
2 parents c09b8fd + 6f63caf commit 38177b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ public MoimSubmissionByMoimResponse getSubmitterListByMoim(Long moimId) {
// moimSubmissionList 가져오기
List<MoimSubmission> moimSubmissionList = moimSubmissionRepository.findMoimListByMoimId(moimId);

if (moimSubmissionList.isEmpty()) {
throw new CustomException(ErrorCode.SUBMITTER_BY_MOIM_NOT_FOUND);
}
// guestId를 추출하여 리스트에 저장
List<Long> guestIdList = moimSubmissionList.stream()
.map(MoimSubmission::getGuestId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public enum ErrorCode {
MOIM_BY_STATE_NOT_FOUND(40406, HttpStatus.NOT_FOUND, "상태에 맞는 모임이 없습니다"),
MOIM_SUBMISSION_NOT_FOUND(40407, HttpStatus.NOT_FOUND, "해당 모임에 신청한 내역이 없습니다."),
MOIM_BY_HOST_AND_STATE_NOT_FOUND(40408, HttpStatus.NOT_FOUND, "호스트와 상태에 해당하는 모임이 없습니다."),
SUBMITTER_BY_MOIM_NOT_FOUND(40409, HttpStatus.NOT_FOUND, "해당 모임에 신청자가 없습니다."),

// 405 Method Not Allowed Error
METHOD_NOT_ALLOWED(40500, HttpStatus.METHOD_NOT_ALLOWED, "지원하지 않는 메소드입니다."),
Expand Down

0 comments on commit 38177b3

Please sign in to comment.