Do not freak out just because the is no blooding slogan
This commit is contained in:
parent
036c3bc9ce
commit
ca7d343810
|
@ -65,7 +65,7 @@ func (h *AdminHandler) Handler(user *auth.User, company *auth.Company, conn *dat
|
||||||
|
|
||||||
func serveHomeIndex(w http.ResponseWriter, r *http.Request, user *auth.User, company *auth.Company, conn *database.Conn) {
|
func serveHomeIndex(w http.ResponseWriter, r *http.Request, user *auth.User, company *auth.Company, conn *database.Conn) {
|
||||||
f := newHomeForm(company)
|
f := newHomeForm(company)
|
||||||
if err := f.FillFromDatabase(r.Context(), company, conn); err != nil {
|
if err := f.FillFromDatabase(r.Context(), company, conn); err != nil && !database.ErrorIsNotFound(err) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
serveHomeIndexWithForm(w, r, user, company, conn, f)
|
serveHomeIndexWithForm(w, r, user, company, conn, f)
|
||||||
|
|
Loading…
Reference in New Issue