fix: update account profile (#25150)

This commit is contained in:
Will 2025-09-04 18:32:51 +08:00 committed by GitHub
parent fb307ae128
commit d36ce782b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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)