🐛 Fix calculation of expected hours
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user