Skip to content

Commit 72d09fa

Browse files
committed
refactor(recruit-board): 도메인 로직 메서드 변경
- isApplicationOpen -> isRecruitOpen
1 parent c6bd639 commit 72d09fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/somemore/recruitboard/domain/RecruitBoard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void changeRecruitStatus(RecruitStatus newStatus, LocalDateTime currentDa
9292
this.recruitStatus = newStatus;
9393
}
9494

95-
public boolean isApplicationOpen() {
95+
public boolean isRecruitOpen() {
9696
return this.recruitStatus == RECRUITING;
9797
}
9898

src/main/java/com/somemore/volunteerapply/service/ApplyVolunteerApplyService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Long apply(VolunteerApplyCreateRequestDto requestDto, UUID volunteerId) {
3737
}
3838

3939
private void validateCanApply(RecruitBoard board) {
40-
if (board.isApplicationOpen()) {
40+
if (board.isRecruitOpen()) {
4141
return;
4242
}
4343
throw new BadRequestException(RECRUITMENT_NOT_OPEN);

0 commit comments

Comments
 (0)