🐛 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,8 +153,10 @@ async def process_flow(
|
||||||
)
|
)
|
||||||
if isinstance(result, dict) and "result" in result:
|
if isinstance(result, dict) and "result" in result:
|
||||||
task_result = result["result"]
|
task_result = result["result"]
|
||||||
|
session_id = result["session_id"]
|
||||||
else:
|
else:
|
||||||
task_result = result.result
|
task_result = result.result
|
||||||
|
|
||||||
session_id = result.session_id
|
session_id = result.session_id
|
||||||
else:
|
else:
|
||||||
task_id, task = await task_service.launch_task(
|
task_id, task = await task_service.launch_task(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue