io
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user