seed tournament done
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -28,7 +28,7 @@ export function transformTeamInfo(record: any): TeamInfo {
|
||||
export const transformMatch = (record: any): Match => {
|
||||
return {
|
||||
id: record.id,
|
||||
order: record.name,
|
||||
order: record.order,
|
||||
lid: record.lid,
|
||||
reset: record.reset,
|
||||
round: record.round,
|
||||
|
||||
Reference in New Issue
Block a user