Skip to content

Commit

Permalink
refactor(inprogressMatch): 진행 중인 경기 matchid 기준으로 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
soeunnPark committed Dec 20, 2024
1 parent 2e5ef70 commit d5cd39b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.badminton.api.application.match;

import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -98,6 +99,7 @@ public MatchInfo.SetScoreDetails retrieveAllSetsScoreInMatch(Long leagueId, Long
public List<LeagueSetsScoreInProgressInfo> retrieveLeagueMatchSetsScoreInProgress(Long leagueId) {
List<LeagueSetsScoreInProgressInfo> inProgressSet = setRepository.getInProgressSet(leagueId);
if (!inProgressSet.isEmpty()) {
inProgressSet.sort(Comparator.comparing(LeagueSetsScoreInProgressInfo::matchId));
return inProgressSet;
}
MatchRetrieveService matchRetrieveService = getMatchRetrieveService(leagueId);
Expand Down

0 comments on commit d5cd39b

Please sign in to comment.