feat: add current user retrieval in EnvironmentVariableCollectionApi post method

This commit is contained in:
Harry 2026-02-05 17:27:15 +08:00
parent 06c31dfdb2
commit 306ef79526
1 changed files with 1 additions and 0 deletions

View File

@ -592,6 +592,7 @@ class EnvironmentVariableCollectionApi(Resource):
@get_app_model(mode=[AppMode.ADVANCED_CHAT, AppMode.WORKFLOW])
def post(self, app_model: App):
payload = EnvironmentVariableUpdatePayload.model_validate(console_ns.payload or {})
current_user, _ = current_account_with_tenant()
workflow_service = WorkflowService()