claude thinks it works

This commit is contained in:
nicksales72
2026-03-13 14:27:46 -04:00
parent a9b076a5ec
commit 851fd87bdb
8 changed files with 1914 additions and 53 deletions

View File

@@ -12,7 +12,40 @@ export const load: PageServerLoad = async ({ locals }) => {
requireAuth(locals);
const matches = await db.query.match.findMany({
with: { participants: { with: { team: true } }, mappool: { with: { slots: true } } },
columns: {
id: true,
name: true,
state: true,
config: true,
createdAt: true,
finishedAt: true,
winnerId: true
},
with: {
participants: {
columns: {
teamId: true,
score: true,
slot: true
},
orderBy: (p, { asc }) => [asc(p.slot)],
with: {
team: {
columns: {
id: true,
name: true,
avatarUrl: true
}
}
}
},
mappool: {
columns: {
id: true,
name: true
}
}
},
orderBy: desc(match.createdAt),
limit: 50
});