fix(workflow): update API route for DraftWorkflowTriggerRunApi

- Changed the route from "/apps/<uuid:app_id>/workflows/draft/trigger/run" to "/apps/<uuid:app_id>/workflows/draft/trigger/plugin/run" to reflect the new plugin-based trigger structure.
- Updated corresponding URL in the useWorkflowRun hook to maintain consistency across the application.
This commit is contained in:
Harry 2025-10-10 18:13:28 +08:00
parent 31c9d9da3f
commit 0c65824cad
2 changed files with 2 additions and 2 deletions

View File

@ -1081,7 +1081,7 @@ class DraftWorkflowTriggerNodeApi(Resource):
), 500
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/run")
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/plugin/run")
class DraftWorkflowTriggerRunApi(Resource):
"""
Full workflow debug - Polling API for trigger events

View File

@ -189,7 +189,7 @@ export const useWorkflowRun = () => {
console.error('handleRun: missing app id for trigger plugin run')
return
}
url = `/apps/${appDetail.id}/workflows/draft/trigger/run`
url = `/apps/${appDetail.id}/workflows/draft/trigger/plugin/run`
}
else if (appDetail?.mode === 'advanced-chat') {
url = `/apps/${appDetail.id}/advanced-chat/workflows/draft/run`