diff --git a/src/main/java/com/unit/daybook/domain/board/dto/response/FindOneBoardResponse.java b/src/main/java/com/unit/daybook/domain/board/dto/response/FindOneBoardResponse.java index 31adbe2..fb62e55 100644 --- a/src/main/java/com/unit/daybook/domain/board/dto/response/FindOneBoardResponse.java +++ b/src/main/java/com/unit/daybook/domain/board/dto/response/FindOneBoardResponse.java @@ -25,14 +25,13 @@ public record FindOneBoardResponse( ) { public static FindOneBoardResponse of(Board board, List reactions, List comments) { List hashContents = board.getHashtags().stream().map(Hashtag::getContent).toList(); - Long heartsFromReactions = reactions.stream().mapToLong(ReactionTypeAndCount::count).sum(); return new FindOneBoardResponse( board.getBoardId(), board.getContent(), board.getRespectBoardId(), board.getMember().getId(), board.getCategory(), - heartsFromReactions, + board.getHearts(), hashContents, board.getPaperType(), reactions,