Jon/allow block scripts to be fetched with status (#3469)

This commit is contained in:
Jonathan Dobson
2025-09-18 17:57:23 -04:00
committed by GitHub
parent f73de59d6c
commit f283958a52
3 changed files with 8 additions and 1 deletions

View File

@@ -295,12 +295,14 @@ async def get_workflow_script_blocks(
raise HTTPException(status_code=404, detail="Workflow not found")
cache_key = block_script_request.cache_key or workflow.cache_key or ""
status = block_script_request.status
scripts = await app.DATABASE.get_workflow_scripts_by_cache_key_value(
organization_id=current_org.organization_id,
workflow_permanent_id=workflow_permanent_id,
cache_key_value=cache_key_value,
cache_key=cache_key,
statuses=[status] if status else None,
)
if not scripts: