Skip to content

Commit

Permalink
refactor(main-api): 기기마다 조회가 아닌, Member 마다 조회로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rlajm1203 committed Jan 19, 2025
1 parent 86f9759 commit 1843502
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ private MemberInRoomResponse toResponse(MemberId memberId, List<ActiveDevice> de
Long totalConnectedMinute = devices.stream()
.map(ActiveDevice::totalConnectedTime)
.max(Duration::compareTo)
.orElse(Duration.ZERO)
.toMinutes();
.orElse(Duration.ZERO)
.toMinutes();

boolean isActive = devices.stream()
.anyMatch(ActiveDevice::isActive);
Expand Down

0 comments on commit 1843502

Please sign in to comment.