seed tournament done

This commit is contained in:
yohlo
2025-09-07 11:55:41 -05:00
parent 2396464a19
commit c5d69f1a19
6 changed files with 139 additions and 50 deletions

View File

@@ -14,7 +14,7 @@ export function createTournamentsService(pb: PocketBase) {
return {
async getTournament(id: string): Promise<Tournament> {
const result = await pb.collection("tournaments").getOne(id, {
expand: "teams, teams.players, matches, matches.tournament",
expand: "teams, teams.players, matches, matches.tournament, matches.home, matches.away",
});
return transformTournament(result);
},