Skip to content

Commit fa34966

Browse files
committed
[refactor] (모임홈) 내가 참여중인 모임방의 response 중 userPercentage 값 수정
1 parent 4a803c1 commit fa34966

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/konkuk/thip/room/adapter/out/persistence/repository/RoomQueryRepositoryImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,7 @@ public Page<RoomGetHomeJoinedListResponse.JoinedRoomInfo> searchHomeJoinedRooms(
250250
.bookImageUrl(t.get(book.imageUrl))
251251
.roomTitle(t.get(room.title))
252252
.memberCount(t.get(room.memberCount))
253-
.userPercentage(Optional.ofNullable(t.get(participant.userPercentage))
254-
.map(val -> ((Number) val).doubleValue())
255-
.map(Math::round)
256-
.map(Long::intValue)
257-
.orElse(0))
253+
.userPercentage(t.get(participant.userPercentage).intValue())
258254
.build()
259255
)
260256
.toList();

0 commit comments

Comments
 (0)