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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: fix inner API workspace Account.query error. (#16630)
lenbo5eb0ca9b9d80
diff --git a/api/controllers/inner_api/workspace/workspace.py b/api/controllers/inner_api/workspace/workspace.pyindex 436854698e6..9dfa5d23c36 100644--- a/api/controllers/inner_api/workspace/workspace.py+++ b/api/controllers/inner_api/workspace/workspace.py@@ -6,6 +6,7 @@ from controllers.console.wraps import setup_requiredfrom controllers.inner_api import apifrom controllers.inner_api.wraps import enterprise_inner_api_onlyfrom events.tenant_event import tenant_was_created+from extensions.ext_database import dbfrom models.account import Accountfrom services.account_service import TenantService@@ -19,7 +20,7 @@ class EnterpriseWorkspace(Resource):parser.add_argument("owner_email", type=str, required=True, location="json")args = parser.parse_args()- account = Account.query.filter_by(email=args["owner_email"]).first()+ account = db.session.query(Account).filter_by(email=args["owner_email"]).first()if account is None:return {"message": "owner account not found."}, 404