From 6093ccec7cb2b836dfdc9873a57b8e5e4459d0d0 Mon Sep 17 00:00:00 2001 From: Jonas Simoen Date: Sat, 15 Jun 2024 15:57:54 +0200 Subject: [PATCH] fix: take own goals into account --- src/controllers/Statistic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/Statistic.ts b/src/controllers/Statistic.ts index 63c6b38..90f0d1a 100644 --- a/src/controllers/Statistic.ts +++ b/src/controllers/Statistic.ts @@ -195,7 +195,7 @@ export const PutMatchStatisticHandler = async (req: any, rep: any) => { "penaltyCommited", "penaltyWon", "penaltyScored", "penaltyMissed", "duelsTotal", "duelsWon", "aerialDuelsTotal", "aerialDuelsWon", "errorLeadingGoal", "bigChancesCreated", "bigChancesMissed", - "goalsAgainst" + "goalsAgainst", "ownGoals" ] await prisma.$transaction([