chore: minor

This commit is contained in:
andig 2025-10-23 15:24:52 +02:00
parent 8e9961ef5a
commit 1ab14fa8da

View file

@ -370,7 +370,10 @@ func getBackup(authObject auth.Auth) http.HandlerFunc {
return
}
settings.Persist()
if err := settings.Persist(); err != nil {
http.Error(w, "Synching DB failed", http.StatusInternalServerError)
return
}
f, err := os.Open(db.FilePath)
if err != nil {