chore: minor
This commit is contained in:
parent
8e9961ef5a
commit
1ab14fa8da
1 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue