fix workflow not found bug (#1792)

This commit is contained in:
Shuchang Zheng
2025-02-19 05:53:15 +08:00
committed by GitHub
parent f7156f1469
commit 179ab5fb2a

View File

@@ -702,7 +702,7 @@ async def execute_workflow(
)
workflow = await app.WORKFLOW_SERVICE.get_workflow_by_permanent_id(
workflow_permanent_id=workflow_id,
organization_id=current_org.organization_id,
organization_id=None if template else current_org.organization_id,
version=version,
)
await app.DATABASE.create_task_run(