Skip to content

Commit

Permalink
[IDLE-297] hotfix: NoOffset 추천피드 조회시, 마지막 페이징 응답값 변경
Browse files Browse the repository at this point in the history
minnseong committed Nov 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d14ca09 commit 6fafb95
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -34,6 +34,11 @@ public RecommendationFeedViewAllResponse findRecommendationFeedWithNoOffsetPagin

List<RecommendationFeedViewAllModel> recommendationFeeds =
recommendationFeedRepository.getRecommendationFeedViewAll(request.getRecommendationFeedId(), request.getPageSize(), request.getLoginId());

if (recommendationFeeds.isEmpty()) {
return RecommendationFeedViewAllResponse.builder().lastRecommendationFeedId(null).recommendationFeeds(List.of()).build();
}

Long lastRecommendationFeedId = recommendationFeeds.get(recommendationFeeds.size() - 1).getRecommendationFeedId();

UserInfoServiceResponse usersInfo = userServiceClient.getUsersInfo(getUserIdFromRecommendationFeedViewAllModel(recommendationFeeds));

0 comments on commit 6fafb95

Please sign in to comment.