Browse Source

fix: Allow advanced chat app to get workflow run detail (#18753) (#18758)

tags/1.3.1
1betatsu 6 months ago
parent
commit
9a3ecc1ac8
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/controllers/service_api/app/workflow.py

+ 1
- 1
api/controllers/service_api/app/workflow.py View File

@@ -59,7 +59,7 @@ class WorkflowRunDetailApi(Resource):
Get a workflow task running detail
"""
app_mode = AppMode.value_of(app_model.mode)
if app_mode != AppMode.WORKFLOW:
if app_mode not in [AppMode.WORKFLOW, AppMode.ADVANCED_CHAT]:
raise NotWorkflowAppError()

workflow_run = db.session.query(WorkflowRun).filter(WorkflowRun.id == workflow_run_id).first()

Loading…
Cancel
Save