Skip to content

Commit

Permalink
fix: isRecruiting 기본값을 true로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
baekhangyeol committed Nov 16, 2023
1 parent 4bc1576 commit f68c7e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class Recruitment extends BaseEntity {
@Column(nullable = false)
private LocalDateTime period;

@Column(nullable = true)
private boolean isRecruiting;
@Column(nullable = false)
private boolean isRecruiting = true;

@Enumerated(EnumType.STRING)
@Column(nullable = false)
Expand Down Expand Up @@ -86,7 +86,7 @@ public void updateRecruitment(UpdateRecruitmentRequest request, Tags tags) {
addTag(tags);
}

public boolean getIsRecruiting() {
return LocalDateTime.now().isBefore(this.endDate);
}
// public boolean IsRecruiting() {
// return LocalDateTime.now().isBefore(this.endDate);
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static GetRecruitmentDetailResponse from(Recruitment recruitment) {
.period(recruitment.getPeriod())
.position(recruitment.getPosition())
.recruitmentCount(recruitment.getRecruitmentCount())
.isRecruiting(recruitment.getIsRecruiting())
.isRecruiting(recruitment.isRecruiting())
.techTags(recruitment.getTagNames())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static GetRecruitmentResponse from(Recruitment recruitment) {
.nickname(recruitment.getMember().getNickname())
.title(recruitment.getTitle())
.position(recruitment.getPosition())
.isRecruiting(recruitment.getIsRecruiting())
.isRecruiting(recruitment.isRecruiting())
.techTags(recruitment.getTagNames())
.build();
}
Expand Down

0 comments on commit f68c7e8

Please sign in to comment.