io
This commit is contained in:
@@ -52,9 +52,9 @@ export async function POST(_: NextRequest, { params }: { params: Promise<{ id: s
|
||||
});
|
||||
|
||||
const stat = await db.playerMatchStat.upsert({
|
||||
where: { playerId_matchId: { playerId, matchId: params.id } },
|
||||
where: { playerId_matchId: { playerId, matchId: id } },
|
||||
update: { goals, assists, yellowCards, redCards, minutesPlayed, cleanSheet, penaltySaved, penaltyMissed, ownGoals, isMotm, extraTimeBonus, points },
|
||||
create: { playerId, matchId: params.id, goals, assists, yellowCards, redCards, minutesPlayed, cleanSheet, penaltySaved, penaltyMissed, ownGoals, isMotm, extraTimeBonus, points },
|
||||
create: { playerId, matchId: id, goals, assists, yellowCards, redCards, minutesPlayed, cleanSheet, penaltySaved, penaltyMissed, ownGoals, isMotm, extraTimeBonus, points },
|
||||
});
|
||||
|
||||
// آپدیت totalPoints بازیکن
|
||||
|
||||
Reference in New Issue
Block a user