Skip to content

Commit 156441f

Browse files
committed
[EA3-209] refactor: 모집글 저장시 모집 기간 수정
1 parent 6f827b8 commit 156441f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/grep/neogulcoder/domain/recruitment/post/service/RecruitmentPostSaveService.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public long create(RecruitmentPostCreateServiceRequest request, long userId) {
3636
throw new BusinessException(NOT_STUDY_LEADER);
3737
}
3838

39-
if(isStudyAlreadyEndedDateTime(studyMember.getStudy(), request.getExpiredDate())){
39+
if(studyMember.getStudy().hasEndDateBefore(request.getExpiredDate())){
4040
throw new BusinessException(END_DATE_ERROR);
4141
}
4242

@@ -57,10 +57,6 @@ public JoinedStudyLoadInfo getJoinedStudyLoadInfo(long studyId, long userId) {
5757
return JoinedStudyLoadInfo.of(study, remainSlots);
5858
}
5959

60-
private boolean isStudyAlreadyEndedDateTime(Study study, LocalDateTime expiredDateTime) {
61-
return study.hasEndDateBefore(expiredDateTime);
62-
}
63-
6460
private boolean isNotParticipated(StudyMember studyMember) {
6561
return studyMember == null;
6662
}

0 commit comments

Comments
 (0)