fix: remove duplicate win/loss increment in partnership stats calculation
This commit is contained in:
@@ -333,8 +333,6 @@ export async function recalculateAllElo(prisma: PrismaClient) {
|
||||
} else {
|
||||
partnership2.losses += 1;
|
||||
}
|
||||
partnership2.wins += team2Won ? 1 : 0;
|
||||
partnership2.losses += team2Won ? 0 : 1;
|
||||
partnership2.totalEloChange += p3Change + p4Change;
|
||||
if (playedAt && (!partnership2.lastPlayed || playedAt > partnership2.lastPlayed)) {
|
||||
partnership2.lastPlayed = playedAt;
|
||||
|
||||
Reference in New Issue
Block a user