fix: xxx is not bound to a Session (#24966)

This commit is contained in:
Will
2025-09-02 21:37:06 +08:00
committed by GitHub
parent 25a11bfafc
commit b5216df4fe
2 changed files with 5 additions and 2 deletions

View File

@@ -453,7 +453,7 @@ class AdvancedChatAppGenerator(MessageBasedAppGenerator):
# release database connection, because the following new thread operations may take a long time
db.session.refresh(workflow)
db.session.refresh(message)
db.session.refresh(user)
# db.session.refresh(user)
db.session.close()
# return response or stream generator