small refactor
Some checks failed
Tests / Run Go Tests (push) Failing after 1m26s

This commit is contained in:
2025-12-24 23:35:19 +01:00
parent b7de3ade65
commit 7fae75be75
3 changed files with 4 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ func PDFCreateController(w http.ResponseWriter, r *http.Request) {
employes, err := models.GetUserByPersonalNrMulti(personalNumbers)
if err != nil {
slog.Warn("Error getting employes!", slog.Any("Error", err))
// return
return
}
n := 0
@@ -102,9 +102,6 @@ func PDFCreateController(w http.ResponseWriter, r *http.Request) {
}
}
employes = employes[:n]
if helper.GetEnv("GO_ENV", "production") == "debug" {
employes = append(employes, user)
}
reportData := createReports(employes, startDate)