Skip to content

Commit

Permalink
Feat: CHAT-308-BE-통계-모든대화상대전송 (#58)
Browse files Browse the repository at this point in the history
대화하지 않은 상대도 0으로 전송
  • Loading branch information
dainshon authored Feb 16, 2024
1 parent 61a80c0 commit 1f2a4c2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ public ChatSenderStatisticsResponseDTO calculateSenderStatistics(Long memberId,
}
}

for(int i = 1; i < 4; i++){
if(!chatCountMap.containsKey(Sender.getByIndex(i))){
System.out.println("puupup: "+Sender.getByIndex(i));
chatCountMap.put(Sender.getByIndex(i), 0L);
}
}

final long finalTotalChats = totalChats;
List<ChatSenderDetailResponseDTO> details = chatCountMap.entrySet().stream()
.filter(entry -> entry.getKey() != Sender.USER)
Expand Down

0 comments on commit 1f2a4c2

Please sign in to comment.