Jon/allow block scripts to be fetched with status (#3469)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user