mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-08 12:16:12 -05:00
Optimize tournament series leaderboard, tiebreak by placements
This commit is contained in:
@@ -226,6 +226,11 @@ export function buildCases(fx: Fixtures): {
|
||||
add("CalendarRepository.findResultsByEventId", fx.resultsEventId, (eventId) =>
|
||||
CalendarRepository.findResultsByEventId(eventId),
|
||||
);
|
||||
add(
|
||||
"CalendarRepository.findTopThreeResultsByEventIds",
|
||||
fx.resultsEventId,
|
||||
(eventId) => CalendarRepository.findTopThreeResultsByEventIds([eventId]),
|
||||
);
|
||||
|
||||
// FriendRepository
|
||||
add("FriendRepository.findByUserIdWithActivity", fx.heavyFriendPair, (pair) =>
|
||||
@@ -1091,10 +1096,10 @@ export function buildCases(fx: Fixtures): {
|
||||
(window) => TournamentRepository.findAllBetweenTwoTimestamps(window),
|
||||
);
|
||||
add(
|
||||
"TournamentRepository.findTopThreeResultsByTournamentId",
|
||||
"TournamentRepository.findTopThreeResultsByTournamentIds",
|
||||
fx.heavyTournamentId,
|
||||
(tournamentId) =>
|
||||
TournamentRepository.findTopThreeResultsByTournamentId(tournamentId),
|
||||
TournamentRepository.findTopThreeResultsByTournamentIds([tournamentId]),
|
||||
);
|
||||
add(
|
||||
"TournamentRepository.findFriendCodesByTournamentId",
|
||||
|
||||
Reference in New Issue
Block a user