fix: remove duplicate win/loss increment in partnership stats calculation

This commit is contained in:
2026-03-31 01:08:53 -07:00
parent 5be7022382
commit 492a18aa1b
-2
View File
@@ -333,8 +333,6 @@ export async function recalculateAllElo(prisma: PrismaClient) {
} else { } else {
partnership2.losses += 1; partnership2.losses += 1;
} }
partnership2.wins += team2Won ? 1 : 0;
partnership2.losses += team2Won ? 0 : 1;
partnership2.totalEloChange += p3Change + p4Change; partnership2.totalEloChange += p3Change + p4Change;
if (playedAt && (!partnership2.lastPlayed || playedAt > partnership2.lastPlayed)) { if (playedAt && (!partnership2.lastPlayed || playedAt > partnership2.lastPlayed)) {
partnership2.lastPlayed = playedAt; partnership2.lastPlayed = playedAt;