Skip to content

Commit

Permalink
[FIX] 게시글 생성 시 모집중인 상태를 기본값으로 가지도록 변경 (#103)
Browse files Browse the repository at this point in the history
resolve #102
  • Loading branch information
Profile-exe authored Jul 25, 2024
1 parent 6994087 commit d645c7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/econo/buddybridge/post/dto/PostReqDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public record PostReqDto(
String scheduleDetails,
District district,
String content,
PostType postType,
PostStatus postStatus
PostType postType
) {

public Post toEntity(Member author) {
Expand All @@ -40,7 +39,7 @@ public Post toEntity(Member author) {
.district(district)
.content(content)
.postType(postType)
.postStatus(postStatus)
.postStatus(PostStatus.RECRUITING)
.build();
}
}

0 comments on commit d645c7f

Please sign in to comment.