From d36ce782b757a2405e87061316fe054af889545c Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 4 Sep 2025 18:32:51 +0800 Subject: [PATCH] fix: update account profile (#25150) --- api/services/account_service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/services/account_service.py b/api/services/account_service.py index b12d4623b..9a9dd04bb 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)