From 2db01de4541a3c2e5c3ce255715486a2cd5c6d9d Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Mon, 10 Jan 2022 09:33:41 +0200 Subject: [PATCH] Fix seed to include team in LR2 due to BYE --- prisma/seed/script.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/prisma/seed/script.ts b/prisma/seed/script.ts index eee51317a..9b499aee4 100644 --- a/prisma/seed/script.ts +++ b/prisma/seed/script.ts @@ -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,