This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user