Add group ID's to /sendouq/:matchId endpoint

Closes #2719
This commit is contained in:
Kalle 2026-01-13 18:25:10 +02:00
parent 9d8402e4ce
commit fb18bbe7a4
2 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
points: null,
})),
teamAlpha: {
id: match.groupAlpha.id,
score: score[0],
players: match.groupAlpha.members.map((member) => ({
userId: member.id,
@ -71,6 +72,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
})),
},
teamBravo: {
id: match.groupBravo.id,
score: score[1],
players: match.groupBravo.members.map((member) => ({
userId: member.id,

View File

@ -121,6 +121,7 @@ export interface GetSendouqMatchResponse {
}
type SendouqMatchTeam = {
id: number;
score: number;
players: Array<SendouqMatchPlayer>;
};