make bun run check pass

This commit is contained in:
2026-03-13 17:29:59 +01:00
parent ed11001e8d
commit 893309b308
5 changed files with 30 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ export const load: PageServerLoad = async () => {
})
);
const topTeams = teamsWithDetails.filter(Boolean);
const topTeams = teamsWithDetails.filter((x): x is NonNullable<typeof x> => Boolean(x));
// ── High scores — sorted by pp (nulls last) then score ──
const recentHighScores = await db
@@ -131,7 +131,7 @@ export const load: PageServerLoad = async () => {
matchId: s.game.matchId
};
})
).then((rows) => rows.filter(Boolean));
).then((rows) => rows.filter((x): x is NonNullable<typeof x> => Boolean(x)));
return {
topPlayers: playersWithUsers,