always sort scores on win condition

This commit is contained in:
2026-03-07 17:15:06 +01:00
parent ab9672b296
commit 471578af77
4 changed files with 16 additions and 8 deletions

View File

@@ -668,7 +668,8 @@ export async function getMatchFull(matchId: string) {
with: {
slot: true,
scores: {
with: { player: true }
with: { player: true },
orderBy: (s, { desc }) => [desc(s.score)]
}
},
orderBy: (g, { asc }) => [asc(g.gameNumber)]