Add missing error handling when collecting service entries in admin

This commit is contained in:
jordi fita mas 2024-01-16 01:26:25 +01:00
parent c3c349fadf
commit f24f69bbbd
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ func serveServicesIndex(w http.ResponseWriter, r *http.Request, user *auth.User,
panic(err)
}
services, err := collectServiceEntries(r.Context(), company, conn)
if err != nil {
panic(err)
}
page := &servicesIndex{
Services: services,
Slides: slides,