-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔀 :: (#118) 인기 게시글 목록조회 api #119
base: main
Are you sure you want to change the base?
Conversation
src/main/java/com/example/moizaspringserver/domain/feed/service/GetPopularFeedListService.java
Show resolved
Hide resolved
...in/java/com/example/moizaspringserver/domain/category/repository/FeedCategoryRepository.java
Show resolved
Hide resolved
|
||
List<PublicFeed> publicFeedList = publicFeedRepository | ||
.findTop8ByCreatedAtBetweenOrderByLikeCountDesc( | ||
LocalDateTime.now().minusDays(1), LocalDateTime.now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now 따로 빼서 하나로 쓰는거 어때?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굳이 할필욘 없을듯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안이 now 호출을 두 번 하잖어
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅇㅋ
return new PopularFeedListResponse(popularFeedList); | ||
} | ||
|
||
public PopularFeed buildPopularFeed(PublicFeed publicFeed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
쿼리가 몇 방이야..ㄷ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
슬픈게지
Kudos, SonarCloud Quality Gate passed! |
No description provided.