mirror of
https://github.com/langgenius/dify.git
synced 2026-03-31 01:46:51 +08:00
fix: update account profile (#25150)
This commit is contained in:
parent
fb307ae128
commit
d36ce782b7
@ -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…
Reference in New Issue
Block a user