Fix seed to include team in LR2 due to BYE

This commit is contained in:
Kalle (Sendou)
2022-01-10 09:33:41 +02:00
parent e8c612fe8b
commit 2db01de454

View File

@@ -432,7 +432,16 @@ export async function seed(variation?: SeedVariations) {
},
{
matchId: matchToAdvance.loserDestinationMatchId!,
order: "LOWER", // TODO: figure out this
order: "LOWER",
teamId: matchToAdvance.participants.find(
(p) => p.order === "UPPER"
)!.teamId,
},
{
matchId: matches.find(
(match) => match.id === matchToAdvance.loserDestinationMatchId!
)!.winnerDestinationMatchId!,
order: "LOWER",
teamId: matchToAdvance.participants.find(
(p) => p.order === "UPPER"
)!.teamId,