mirror of
https://github.com/langgenius/dify.git
synced 2026-04-21 19:27:40 +08:00
feat: add current user retrieval in EnvironmentVariableCollectionApi post method
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user