Script - credential / secret integration (#3279)
This commit is contained in:
@@ -3930,7 +3930,7 @@ class AgentDB:
|
||||
.where(WorkflowScriptModel.deleted_at.is_(None))
|
||||
)
|
||||
|
||||
if cache_key:
|
||||
if cache_key is not None:
|
||||
ws_script_ids_subquery = ws_script_ids_subquery.where(WorkflowScriptModel.cache_key == cache_key)
|
||||
|
||||
# Latest version per script_id within the org and not deleted
|
||||
|
||||
@@ -840,11 +840,6 @@ class ScriptFileModel(Base):
|
||||
class WorkflowScriptModel(Base):
|
||||
__tablename__ = "workflow_scripts"
|
||||
__table_args__ = (
|
||||
UniqueConstraint(
|
||||
"workflow_permanent_id",
|
||||
"cache_key_value",
|
||||
name="uc_workflow_permanent_id_cache_key_value",
|
||||
),
|
||||
Index("idx_workflow_scripts_org_created", "organization_id", "created_at"),
|
||||
Index("idx_workflow_scripts_workflow_permanent_id", "workflow_permanent_id"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user