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

@@ -13,4 +13,5 @@ live/templ:
templ generate --watch --proxy="http://localhost:8080" --cmd="go run ." --open-browser=false
live/tailwindcss:
npx --yes tailwindcss -i ./src/main.css -o ./static/css/styles.css --minify --watch
npx --yes tailwindcss -i ./src/main.css -o ./static/css/styles.css --watch
#--minify

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)

File diff suppressed because one or more lines are too long