Skip to content

Commit

Permalink
[SAMBAD-301] 메서드 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kkjsw17 committed Aug 26, 2024
1 parent e14272e commit 692c79f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ private List<HandWavingSummary> fetchHandWavingEventSummaries(List<Event> events
return handWavingService.getHandWavingSummariesBy(handWavingEvents);
}

private EventResponse mapToResponseConsiderEventType(Event event, List<HandWavingSummary> handWavingSummaries) {
HandWavingSummary additionalData = HandWavingSummary.findSummaryByEvent(handWavingSummaries, event);

return EventResponse.from(event, additionalData);
}

private EventListResponse mapToEventListResponse(List<Event> events, List<HandWavingSummary> handWavingSummaries) {
List<EventResponse> responses = events.stream()
.map(event -> mapToResponseConsiderEventType(event, handWavingSummaries))
.toList();

return EventListResponse.from(responses);
}

private EventResponse mapToResponseConsiderEventType(Event event, List<HandWavingSummary> handWavingSummaries) {
HandWavingSummary additionalData = HandWavingSummary.findSummaryByEvent(handWavingSummaries, event);

return EventResponse.from(event, additionalData);
}
}

0 comments on commit 692c79f

Please sign in to comment.