diff --git a/app/features/api-public/routes/tournament.$id.teams.ts b/app/features/api-public/routes/tournament.$id.teams.ts index de4ca814c..00580c19b 100644 --- a/app/features/api-public/routes/tournament.$id.teams.ts +++ b/app/features/api-public/routes/tournament.$id.teams.ts @@ -85,6 +85,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => { "User.discordId", "User.discordAvatar", "User.battlefy", + "User.country", "TournamentTeamMember.inGameName", "TournamentTeamMember.isOwner", "TournamentTeamMember.createdAt", @@ -147,6 +148,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => { avatarUrl: member.discordAvatar ? `https://cdn.discordapp.com/avatars/${member.discordId}/${member.discordAvatar}.png` : null, + country: member.country, captain: Boolean(member.isOwner), inGameName: member.inGameName, friendCode: friendCodes[member.userId], diff --git a/app/features/api-public/schema.ts b/app/features/api-public/schema.ts index cfe789f7a..b1e852f83 100644 --- a/app/features/api-public/schema.ts +++ b/app/features/api-public/schema.ts @@ -171,6 +171,10 @@ export type GetTournamentTeamsResponse = Array<{ * @example "https://cdn.discordapp.com/avatars/79237403620945920/6fc41a44b069a0d2152ac06d1e496c6c.png" */ avatarUrl: string | null; + /** + * @example "FI" + */ + country: string | null; captain: boolean; /** * Splatoon 3 splashtag name & ID. Notice the value returned is the player's set name at the time of the tournament.