Skip to content

Commit

Permalink
�fix: 예외처리 오류 수정
Browse files Browse the repository at this point in the history
fix: 예외처리 오류 수정
  • Loading branch information
hong-sile authored Apr 6, 2024
2 parents f0be043 + 7616ca7 commit 15df9ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public String addEvent(final Member member, final LocalDate plannedAt, final Str

@Transactional(readOnly = true)
public List<Event> findMemberEventAfterToday(final String nickName) {
if (memberRepository.existsByNickname(nickName)) {
if (!memberRepository.existsByNickname(nickName)) {
throw new NotFoundException("닉네임에 해당하는 멤버를 찾을 수 없습니다.");
}
return eventRepository.findEventsAfterToday(nickName, LocalDate.now());
Expand Down

0 comments on commit 15df9ab

Please sign in to comment.