From 2d58311942edc110fb7070add118c2f82bd8b823 Mon Sep 17 00:00:00 2001 From: gunom Date: Sun, 14 Jan 2024 16:14:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=98=A8=EB=B3=B4=EB=94=A9=20=EB=B7=B0?= =?UTF-8?q?=20pokeNum=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/sopt/app/facade/PokeFacade.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sopt/app/facade/PokeFacade.java b/src/main/java/org/sopt/app/facade/PokeFacade.java index 598f1251..a30f4b7f 100644 --- a/src/main/java/org/sopt/app/facade/PokeFacade.java +++ b/src/main/java/org/sopt/app/facade/PokeFacade.java @@ -77,6 +77,7 @@ private List makeDummySimplePokeProfile(List 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() @@ -92,7 +93,7 @@ private List makeDummySimplePokeProfile(List use "", Integer.parseInt(generation), part, - 0, + pokeCount, Friendship.NON_FRIEND.getFriendshipName(), NEW_FRIEND_NO_MUTUAL, true,