Add player country info to teams in tourney API (#2478)
Some checks failed
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
soap
2025-08-02 02:15:30 -07:00
committed by GitHub
parent ec4a1ffffc
commit af5e4d006b
2 changed files with 6 additions and 0 deletions

View File

@@ -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],

View File

@@ -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.