refactor(api): update all API routes to use new player field names

This commit is contained in:
2026-04-03 21:03:51 -07:00
parent e5f679e54c
commit 1f7d589698
11 changed files with 103 additions and 591 deletions
@@ -94,10 +94,10 @@ export async function POST(
await prisma.match.create({
data: {
eventId: tournamentId,
team1P1Id: player1.id,
team1P2Id: player2.id,
team2P1Id: player3.id,
team2P2Id: player4.id,
player1P1Id: player1.id,
player1P2Id: player2.id,
player2P1Id: player3.id,
player2P2Id: player4.id,
team1Score: game.score1,
team2Score: game.score2,
status: "completed",