Skip to content

Commit

Permalink
fix: 피드 v1 댓글 count 원복
Browse files Browse the repository at this point in the history
  • Loading branch information
char-yb committed Oct 15, 2024
1 parent 125ad38 commit 6cb219b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public record FeedContentGetResponse(
String missionRecordImageUrl,
@Schema(description = "미션 기록 생성일") LocalDate createdDate,
@Schema(description = "부스트") Long totalBoostCount,
@Schema(description = "댓글 수", example = "12") Integer totalCommentCount,
@Schema(description = "미션 기록 컨텐츠") String content) {
public static FeedContentGetResponse from(FindFeedDto missionRecord) {
return new FeedContentGetResponse(
Expand All @@ -30,6 +31,7 @@ public static FeedContentGetResponse from(FindFeedDto missionRecord) {
missionRecord.missionRecord().getImageUrl(),
missionRecord.missionRecord().getCreatedAt().toLocalDate(),
missionRecord.totalBoostCount(),
missionRecord.totalCommentCount(),
missionRecord.missionRecord().getContent());
}
}

0 comments on commit 6cb219b

Please sign in to comment.