fixed minor bugs + added loggin middleware
All checks were successful
Tests / Run Go Tests (push) Successful in 1m26s

This commit is contained in:
2026-01-18 00:07:54 +01:00
parent 502955d32f
commit 560c539b19
6 changed files with 28 additions and 12 deletions

View File

@@ -331,7 +331,7 @@ func GetWorkDays(user User, tsFrom, tsTo time.Time) []WorkDay {
if len(workDay.Bookings) == 1 && workDay.Bookings[0].CounterId == 0 {
workDay.Bookings = []Booking{}
}
if len(workDay.Bookings) > 1 || !helper.IsWeekend(workDay.Date()) {
if len(workDay.Bookings) >= 1 || !helper.IsWeekend(workDay.Date()) {
workDays = append(workDays, workDay)
}
}