mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
Fix 'reset' Rest API on windows
This commit is contained in:
parent
69af77a3bd
commit
b56c76f8ad
@ -572,7 +572,12 @@ func (s *apiSvc) postSystemReset(w http.ResponseWriter, r *http.Request) {
|
|||||||
folder := qs.Get("folder")
|
folder := qs.Get("folder")
|
||||||
var err error
|
var err error
|
||||||
if len(folder) == 0 {
|
if len(folder) == 0 {
|
||||||
err = resetDB()
|
for folder := range cfg.Folders() {
|
||||||
|
err = s.model.ResetFolder(folder)
|
||||||
|
if err != nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
err = s.model.ResetFolder(folder)
|
err = s.model.ResetFolder(folder)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user