Kaynağa Gözat

fix: update account profile (#25150)

tags/2.0.0-beta.2^2
Will 1 ay önce
ebeveyn
işleme
d36ce782b7
No account linked to committer's email address
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1
    0
      api/services/account_service.py

+ 1
- 0
api/services/account_service.py Dosyayı Görüntüle

@@ -351,6 +351,7 @@ class AccountService:
@staticmethod
def update_account(account, **kwargs):
"""Update account fields"""
account = db.session.merge(account)
for field, value in kwargs.items():
if hasattr(account, field):
setattr(account, field, value)

Loading…
İptal
Kaydet