Skip to content

Commit

Permalink
fix: 온보딩 뷰 pokeNum 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gunom committed Jan 14, 2024
1 parent f30fc32 commit 2d58311
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/sopt/app/facade/PokeFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private List<SimplePokeProfile> makeDummySimplePokeProfile(List<UserProfile> use
return userProfiles.stream().map(
userProfile -> {
val isAlreadyPoke = Objects.nonNull(pokeHistories.get(userProfile.getUserId()));
val pokeCount = friendService.getRelationInfo(userId, userProfile.getUserId()).getPokeNum();
val playgroundProfile = playgroundProfiles.stream()
.filter(profile -> profile.getId().equals(userProfile.getPlaygroundId()))
.findFirst()
Expand All @@ -92,7 +93,7 @@ private List<SimplePokeProfile> makeDummySimplePokeProfile(List<UserProfile> use
"",
Integer.parseInt(generation),
part,
0,
pokeCount,
Friendship.NON_FRIEND.getFriendshipName(),
NEW_FRIEND_NO_MUTUAL,
true,
Expand Down

0 comments on commit 2d58311

Please sign in to comment.