🎇 execute save while delete account

This commit is contained in:
微凉
2022-01-15 19:36:37 +08:00
parent 21ca2f11b7
commit 2473309a51
17 changed files with 60 additions and 6 deletions

View File

@ -67,6 +67,9 @@ func (driver GoogleDrive) Items() []base.Item {
}
func (driver GoogleDrive) Save(account *model.Account, old *model.Account) error {
if account == nil {
return nil
}
account.Proxy = true
err := driver.RefreshToken(account)
if err != nil {