From 48f7e71a8e1e94749cd26e9801bb01fa651f17d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 14 Jun 2026 17:06:22 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20map=20total=5Fgoals=20=E2=86=92=20totalG?= =?UTF-8?q?oals=20in=20confederationStats=20resolver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- lib/graphql/resolvers/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/graphql/resolvers/index.ts b/lib/graphql/resolvers/index.ts index 5a71e97..7d9ceff 100644 --- a/lib/graphql/resolvers/index.ts +++ b/lib/graphql/resolvers/index.ts @@ -337,7 +337,12 @@ export const resolvers = { GROUP BY t.confederation ORDER BY appearances DESC `) - return rows + return (rows as Record[]).map(r => ({ + confederation: r.confederation, + appearances: r.appearances, + titles: r.titles, + totalGoals: r.total_goals, + })) }, async biggestWins(_: unknown, { limit = 10 }: { limit?: number }) { const rows = await db.select().from(matches)