refactor(api): update all API routes to use new player field names
This commit is contained in:
@@ -119,10 +119,10 @@ export async function POST(request: Request) {
|
||||
const createdMatch = await prisma.match.create({
|
||||
data: matchData,
|
||||
include: {
|
||||
team1P1: true,
|
||||
team1P2: true,
|
||||
team2P1: true,
|
||||
team2P2: true,
|
||||
player1P1: true,
|
||||
player1P2: true,
|
||||
player2P1: true,
|
||||
player2P2: true,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user