Skip to content

Commit

Permalink
top5
Browse files Browse the repository at this point in the history
  • Loading branch information
Johyunik committed Dec 6, 2023
1 parent 1c5b652 commit f7419b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,4 @@ public Page<BoardListResponseDTO> getTop5BoardByAverageTemperatureAndLikes(
@PageableDefault(size = 5, sort = "likeCount", direction = Sort.Direction.DESC) Pageable pageable) {
return boardService.getTop5Board(minTemp, maxTemp, pageable);
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ public Page<BoardListResponseDTO> getTop5Board(double minTemp, double maxTemp, P
BoardListResponseDTO dto = BoardListResponseDTO.builder()
.boardId(board.getBoardId())
.temperature(board.getTemperature())
.likeCount(likeService.countLikes(board.getBoardId()))
.images(board.entityToDTO(board.getImages().get(0)))
.build();

Expand Down

0 comments on commit f7419b9

Please sign in to comment.