diverse bugfixes
All checks were successful
release-tag / release-image (push) Successful in 1m32s

This commit is contained in:
2025-09-27 17:39:39 +02:00
parent d125e3dd54
commit 43f1d01a8a
2 changed files with 60 additions and 50 deletions

View File

@@ -221,9 +221,10 @@ func Register(mux *http.ServeMux, d Deps) {
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
return
}
if id, err := strconv.ParseInt(r.FormValue("id"), 10, 64); err == nil {
_, _ = d.Store.Delete(r.Context(), filesvc.ID(id))
_ = d.Blob.Delete(r.Context(), int64(id))
if id64, err := strconv.ParseInt(r.FormValue("id"), 10, 64); err == nil {
_, _ = d.Store.Delete(r.Context(), filesvc.ID(id64))
_ = d.Blob.Delete(r.Context(), id64) // <— Blob löschen
_ = d.Mesh.SyncNow(r.Context())
}
http.Redirect(w, r, "/admin", http.StatusSeeOther)