Skip to content

Commit 9fb6991

Browse files
committed
refactor(volunteer-apply): 메서드 이름 수정
1 parent 490fc7b commit 9fb6991

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void approve(Long id, UUID centerId) {
3030
VolunteerApply apply = getVolunteerApply(id);
3131
RecruitBoard recruitBoard = recruitBoardQueryUseCase.getById(apply.getRecruitBoardId());
3232

33-
validateApprovalConditions(recruitBoard, centerId);
33+
validateWriter(recruitBoard, centerId);
3434
validateBoardStatus(recruitBoard);
3535

3636
apply.changeStatus(APPROVED);
@@ -43,7 +43,7 @@ private VolunteerApply getVolunteerApply(Long id) {
4343
);
4444
}
4545

46-
private void validateApprovalConditions(RecruitBoard recruitBoard, UUID centerId) {
46+
private void validateWriter(RecruitBoard recruitBoard, UUID centerId) {
4747
if (recruitBoard.isWriter(centerId)) {
4848
return;
4949
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void reject(Long id, UUID centerId) {
2929
VolunteerApply apply = getApply(id);
3030
RecruitBoard recruitBoard = recruitBoardQueryUseCase.getById(apply.getRecruitBoardId());
3131

32-
validateRejectConditions(recruitBoard, centerId);
32+
validateWriter(recruitBoard, centerId);
3333
validateBoardStatus(recruitBoard);
3434

3535
apply.changeStatus(REJECTED);
@@ -42,7 +42,7 @@ private VolunteerApply getApply(Long id) {
4242
);
4343
}
4444

45-
private void validateRejectConditions(RecruitBoard recruitBoard, UUID centerId) {
45+
private void validateWriter(RecruitBoard recruitBoard, UUID centerId) {
4646
if (recruitBoard.isWriter(centerId)) {
4747
return;
4848
}

0 commit comments

Comments
 (0)