Commit a13e656
committed
fix: store full precision for total hours played
Remove rounding to 2 decimals in UpdatePlaytimeUseCase when updating TotalHoursPlayed.
Reasons:
- Avoid loss of precision for accumulated playtime.
- Ensure backend stores the most accurate value, allowing the client to display or round as needed.
- Prevent potential floating-point errors from repeated small increments.
- Keep total hours played more consistent and reliable for reporting or analytics.1 parent 0f826bd commit a13e656
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
0 commit comments