Skip to content

Commit

Permalink
Merge pull request #143 from STEPPER-UMC-6th/fix/142
Browse files Browse the repository at this point in the history
[FIX] 위클리 미션 게시글 조회 응답값 수정
  • Loading branch information
hyojin425 authored Aug 19, 2024
2 parents 70c6543 + 24ac3ce commit e760194
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public static PostDto.PostResponseDto toDto(Post post, List<Image> imageList) {
.body(post.getBody())
.bodyPart(post.getBodyPart() != null ? post.getBodyPart().toString() : null)
.authorEmail(post.getMember().getEmail() != null ? post.getMember().getEmail() : null)
.subCategory(post.getSubCategory())
//.weeklyMissionTitle(post.getWeeklyMission() != null ? post.getWeeklyMission().getMissionTitle() : null)
.subCategory(post.getSubCategory() != null? post.getSubCategory(): null)
.weeklyMissionTitle(post.getWeeklyMission() != null ? post.getWeeklyMission().getMissionTitle() : null)
.createdAt(post.getCreatedAt())
.updatedAt(post.getUpdatedAt())
Expand All @@ -55,10 +54,9 @@ public static PostDto.PostViewDto toViewDto(Post post, int likes, int scraps, in
.profileImageUrl(post.getMember().getProfileImage())
.title(post.getTitle())
.body(post.getBody())
.bodyPart(post.getBodyPart().toString())
.bodyPart(post.getBodyPart() != null? post.getBodyPart().toString(): null)
.authorEmail(post.getMember().getEmail())
.subCategory(post.getSubCategory())
//
.subCategory(post.getSubCategory() != null? post.getSubCategory(): null)
.likes(likes)
.scraps(scraps)
.commentsCount(commentsCount)
Expand Down

0 comments on commit e760194

Please sign in to comment.