fix: map total_goals → totalGoals in confederationStats resolver
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -337,7 +337,12 @@ export const resolvers = {
|
||||
GROUP BY t.confederation
|
||||
ORDER BY appearances DESC
|
||||
`)
|
||||
return rows
|
||||
return (rows as Record<string, unknown>[]).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)
|
||||
|
||||
Reference in New Issue
Block a user