Skip to content

Commit

Permalink
fix(stats): right calulation on played time
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Jan 18, 2024
1 parent cac8cd9 commit 52c1c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/Statistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const PutMatchStatisticHandler = async (req: any, rep: any) => {
return ({
...stat,
clubId: player!.clubId,
minutesPlayed: Math.min((stat.out - stat.in) || 0, 90),
minutesPlayed: Math.min(90, stat.out) - stat.in || 0,
calculatedPoints,
})
});
Expand Down

0 comments on commit 52c1c7d

Please sign in to comment.