Skip to content

Commit

Permalink
fix : like, comment map -> filter 교체 #42
Browse files Browse the repository at this point in the history
  • Loading branch information
woo0doo committed Feb 23, 2024
1 parent 0eeaab1 commit 65333da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public static GetProjectsResponseDto of(Project project, boolean isScrapped) {
project.getFieldName().getName(),
project.getCreatedAt(),
project.getProjectPull().getPullUpCnt(),
project.getLikes().stream().map(like -> !like.isDeleted()).count(),
project.getComments().stream().map(comment -> !comment.isDeleted()).count(),
project.getLikes().stream().filter(like -> !like.isDeleted()).count(),
project.getComments().stream().filter(comment -> !comment.isDeleted()).count(),
isScrapped
);
}
Expand Down

0 comments on commit 65333da

Please sign in to comment.