fix: Correct flow retrieval by endpoint name instead of flow name
This commit is contained in:
parent
69fad76281
commit
20cedc173d
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ def get_flow_by_id_or_endpoint_name(
|
|||
flow = db.get(Flow, flow_id)
|
||||
except ValueError:
|
||||
endpoint_name = flow_id_or_name
|
||||
stmt = select(Flow).where(Flow.name == endpoint_name)
|
||||
stmt = select(Flow).where(Flow.endpoint_name == endpoint_name)
|
||||
if user_id:
|
||||
stmt = stmt.where(Flow.user_id == user_id)
|
||||
flow = db.exec(stmt).first()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue