fix: remove unnecessary error handling in LogsHandler

This commit is contained in:
Chrystian Huot 2026-05-17 08:56:39 -04:00
parent 45151574ae
commit 7d97763f8f

View file

@ -350,10 +350,6 @@ func (admin *Admin) LogsHandler(w http.ResponseWriter, r *http.Request) {
} }
logOptions := NewLogSearchOptions().FromMap(m) logOptions := NewLogSearchOptions().FromMap(m)
if err != nil {
w.WriteHeader(http.StatusBadRequest)
return
}
r, err := admin.Controller.Logs.Search(logOptions, admin.Controller.Database) r, err := admin.Controller.Logs.Search(logOptions, admin.Controller.Database)
if err != nil { if err != nil {