From fb18bbe7a4e341afec254e1faf8c34cf25079a11 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 13 Jan 2026 18:25:10 +0200 Subject: [PATCH] Add group ID's to /sendouq/:matchId endpoint Closes #2719 --- app/features/api-public/routes/sendouq.match.$matchId.ts | 2 ++ app/features/api-public/schema.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/app/features/api-public/routes/sendouq.match.$matchId.ts b/app/features/api-public/routes/sendouq.match.$matchId.ts index 9812343cf..9fff6e49b 100644 --- a/app/features/api-public/routes/sendouq.match.$matchId.ts +++ b/app/features/api-public/routes/sendouq.match.$matchId.ts @@ -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, diff --git a/app/features/api-public/schema.ts b/app/features/api-public/schema.ts index 680dc28e3..73c382e44 100644 --- a/app/features/api-public/schema.ts +++ b/app/features/api-public/schema.ts @@ -121,6 +121,7 @@ export interface GetSendouqMatchResponse { } type SendouqMatchTeam = { + id: number; score: number; players: Array; };