mirror of https://github.com/Xhofe/alist
🐛 fix native account status
parent
f87ee1ed9e
commit
e5f8f59c87
|
@ -38,6 +38,8 @@ func (n Native) Proxy(c *gin.Context) {
|
|||
func (n Native) Save(account *model.Account, old *model.Account) error {
|
||||
log.Debugf("save a account: [%s]", account.Name)
|
||||
if !utils.Exists(account.RootFolder) {
|
||||
account.Status = fmt.Sprintf("[%s] not exist", account.RootFolder)
|
||||
_ = model.SaveAccount(account)
|
||||
return fmt.Errorf("[%s] not exist", account.RootFolder)
|
||||
}
|
||||
account.Status = "work"
|
||||
|
|
Loading…
Reference in New Issue