Tournament tier calculation fixes

Closes #2783
This commit is contained in:
Kalle
2026-01-29 22:08:44 +02:00
parent c78525c92c
commit 31244b2d7c
3 changed files with 53 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ function getTournamentsWithOrg(): TournamentWithOrg[] {
INNER JOIN CalendarEvent ce ON ce.tournamentId = t.id
INNER JOIN CalendarEventDate ced ON ced.eventId = ce.id
WHERE t.isFinalized = 1
AND ce.hidden = 0
ORDER BY ced.startTime ASC
`;
return sql.prepare(query).all() as TournamentWithOrg[];