closes #44
All checks were successful
Tests / Run Go Tests (push) Successful in 1m43s

This commit is contained in:
2025-10-01 22:53:27 +02:00
parent 7e27c944f3
commit 3dd4b134c8
9 changed files with 110 additions and 44 deletions

View File

@@ -28,10 +28,9 @@ func teamPresence(w http.ResponseWriter, r *http.Request) {
log.Println("Error getting user!", err)
}
team, err := user.GetTeamMembers()
teamPresence := make(map[bool][]models.User)
teamPresence := make(map[models.User]bool)
for _, user := range team {
present := user.CheckAnwesenheit()
teamPresence[present] = append(teamPresence[present], user)
teamPresence[user] = user.CheckAnwesenheit()
}
if err != nil {