Skip to content

Commit

Permalink
refactor: 메서드 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hjk0761 committed Oct 20, 2024
1 parent 1630e12 commit 96e34c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Map<Long, List<FeedbackOutput>> collectReceivedSocialFeedback(long feedba
.collect(Collectors.groupingBy(FeedbackOutput::roomId));
}

public boolean exist(long deliverId, long receiverId) {
public boolean existsByDeliverAndReceiver(long deliverId, long receiverId) {
return socialFeedbackRepository.existsByDeliverIdAndReceiverId(deliverId, receiverId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void maskingIfNoFeedbackDeliver(long receiverId, Map<Long, List<Feedback
}

private List<FeedbackOutput> maskingFeedback(long receiverId, List<FeedbackOutput> feedbackOutputs, boolean isDeliver) {
BiFunction<Long, Long, Boolean> biFunction = isDeliver ? socialFeedbackReader::exist : developFeedbackReader::exist;
BiFunction<Long, Long, Boolean> biFunction = isDeliver ? socialFeedbackReader::existsByDeliverAndReceiver : developFeedbackReader::exist;
return feedbackOutputs.stream()
.map(feedbackOutput -> {
if (needToMasking(receiverId, feedbackOutput, biFunction)) {
Expand Down

0 comments on commit 96e34c9

Please sign in to comment.