Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: update account profile (#25150)

Willd36ce782b757
diff --git a/api/services/account_service.py b/api/services/account_service.py
index b12d4623bbf..9a9dd04bbeb 100644
--- a/api/services/account_service.py
+++ b/api/services/account_service.py
@@ -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)