Skip to content

Commit

Permalink
Refacor: 출석코드 요청 메세지, 이벤트 조회할 수 없을때 메세지 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Jul 16, 2024
1 parent 2454422 commit b222e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

@Data
public class RequestAttendance {
@NotBlank(message = "출석 코드는 필수 입력 항목입니다.")
@NotBlank(message = "출석 코드를 입력해주세요.")
private String attendanceCode;
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ResponseAttendance recordAttendance(RequestAttendance requestDto) {
Event currentEvent = currentEvents.stream()
.filter(event -> event.getTitle().equals(requestDto.getAttendanceCode()))
.findFirst()
.orElseThrow(() -> new IllegalArgumentException("현재 시간에 해당하는 이벤트가 없습니다."));
.orElseThrow(() -> new IllegalArgumentException("현재 시간에 해당하는 모임이 없습니다."));

if (!currentEvent.getTitle().equals(requestDto.getAttendanceCode())) {
throw new IllegalArgumentException("잘못된 출석 코드입니다.");
Expand Down

0 comments on commit b222e81

Please sign in to comment.