mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 19:55:46 -05:00
Add player country info to teams in tourney API (#2478)
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user