🐛 fix(endpoints.py): fix indentation issue in process_flow function and assign session_id correctly when result is a dictionary
This commit is contained in:
parent
8557a728d6
commit
358f5c9019
1 changed files with 3 additions and 1 deletions
|
|
@ -153,9 +153,11 @@ async def process_flow(
|
|||
)
|
||||
if isinstance(result, dict) and "result" in result:
|
||||
task_result = result["result"]
|
||||
session_id = result["session_id"]
|
||||
else:
|
||||
task_result = result.result
|
||||
session_id = result.session_id
|
||||
|
||||
session_id = result.session_id
|
||||
else:
|
||||
task_id, task = await task_service.launch_task(
|
||||
process_graph_cached_task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue