This commit is contained in:
2026-05-03 17:01:46 +03:30
parent b5ad5420b2
commit 9c30295b4b
76 changed files with 7891 additions and 461 deletions

View File

@@ -20,5 +20,18 @@ export default async function TeamPage() {
orderBy: { totalPoints: "desc" },
});
return <TeamBuilder team={team} allPlayers={allPlayers} />;
const specialCards = await db.goldenCard.findMany({
where: {
userId,
status: "OPENED",
state: { not: "SOLD" },
},
include: {
player: { include: { country: true } },
teamPlayer: true,
},
orderBy: { acquiredDate: "desc" },
});
return <TeamBuilder team={team} allPlayers={allPlayers} initialSpecialCards={specialCards as any} />;
}