From e5f8f59c87a699f317022f7128832417ca76b017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Tue, 16 Nov 2021 18:23:59 +0800 Subject: [PATCH] :bug: fix native account status --- drivers/native.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/native.go b/drivers/native.go index 3f5d1d0b..b7d6ff46 100644 --- a/drivers/native.go +++ b/drivers/native.go @@ -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"