🐛 Fix calculation of expected hours

This commit is contained in:
2026-12-02 19:47:35 +01:00
parent 2c2c7a97c6
commit 6b20cd9591
7 changed files with 110 additions and 19 deletions
+4 -1
View File
@@ -38,7 +38,10 @@ func CloseWeek(app core.App, owner string, weekKey string, now time.Time) (*core
if set == nil {
return nil, ErrNoSettings
}
expectedMs := weekExpectedMs(set)
expectedMs, err := weekExpectedMs(tx, owner, dayKeys)
if err != nil {
return nil, err
}
var workedMs int64
for _, dayKey := range dayKeys {