Skip to content

Commit

Permalink
🎨 Fix: like 정렬기준 버그 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
karryred committed Aug 21, 2024
1 parent 45f1616 commit 9651304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private <T> Slice<T> checkLastPage(Pageable pageable, List<T> postList) {
private OrderSpecifier orderBySortType(SortType sortTypeCond) {
return switch (sortTypeCond) {
case HOT -> commnuityPost.popularityScore.desc(); // HOT: 인기점수 내림차순
case LIKE -> commnuityPost.createdAt.desc(); // LIKE: 좋아요 내림차순
case LIKE -> commnuityPost.likeCnt.desc(); // LIKE: 좋아요 내림차순
case HIT -> commnuityPost.hit.desc(); // HIT: 조회수 내림차순
default -> commnuityPost.createdAt.desc(); // null or RECENT: 최신순(생성일자 내림차순)
};
Expand Down

0 comments on commit 9651304

Please sign in to comment.