Skip to content

Commit

Permalink
[fix] 커뮤니티 댓글 개수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryeolee committed Nov 19, 2023
1 parent ee749db commit aef033a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public BaseResponseDto<WholePostingResponseDto> getWholePosting(){
.tag(posting.getTag())
.commentCount(posting.getComments().size());


if (userDto != null) {
builder.nickName((String) userDto.get("nickName"))
.userImageUrl((String) userDto.get("imageUrl"));
Expand Down Expand Up @@ -214,6 +215,7 @@ public BaseResponseDto<WholePostingResponseDto> getMyPosting(Long userId){
String formattedDate = timeCalculator.formatCreatedAt(posting.getCreatedAt());

WholePostingDto.WholePostingDtoBuilder builder = WholePostingDto.builder()
.userId(Math.toIntExact(userId))
.title(posting.getTitle())
.contents(posting.getContents())
.postingId(posting.getId())
Expand Down

0 comments on commit aef033a

Please sign in to comment.