From 2d89b7d0a986bdedc18e7371f6a714d423c058e8 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Thu, 15 Aug 2024 16:46:48 +0800 Subject: [PATCH] fix(api/services/app_dsl_service.py): Add conversation variables. (#7304) --- api/services/app_dsl_service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/services/app_dsl_service.py b/api/services/app_dsl_service.py index 838585c57..bfb160b3e 100644 --- a/api/services/app_dsl_service.py +++ b/api/services/app_dsl_service.py @@ -285,6 +285,8 @@ class AppDslService: # sync draft workflow environment_variables_list = workflow_data.get('environment_variables') or [] environment_variables = [factory.build_variable_from_mapping(obj) for obj in environment_variables_list] + conversation_variables_list = workflow_data.get('conversation_variables') or [] + conversation_variables = [factory.build_variable_from_mapping(obj) for obj in conversation_variables_list] draft_workflow = workflow_service.sync_draft_workflow( app_model=app_model, graph=workflow_data.get('graph', {}), @@ -292,6 +294,7 @@ class AppDslService: unique_hash=unique_hash, account=account, environment_variables=environment_variables, + conversation_variables=conversation_variables, ) return draft_workflow