Skip to content

Commit

Permalink
refactor: ♻️ coalition 순서 정렬해 반환하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
niamu01 committed Sep 22, 2023
1 parent afeb26d commit f308170
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/api/score/score.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ export class ScoreService {
_id: 0,
coalition: { $first: '$coalitions' },
value: 1,
})
.then((winCountPerCoalition) => {
return winCountPerCoalition.sort(
(a, b) => a.coalition.id - b.coalition.id,
);
});
}
}

0 comments on commit f308170

Please sign in to comment.