refac: on_valves_update -> on_valves_updated

This commit is contained in:
Timothy J. Baek
2024-05-29 23:32:28 -07:00
parent f677bb9d0c
commit c29231ea37
8 changed files with 23 additions and 15 deletions

View File

@@ -451,8 +451,8 @@ async def update_valves(pipeline_id: str, form_data: dict):
valves = ValvesModel(**form_data)
pipeline.valves = valves
if hasattr(pipeline, "on_valves_update"):
await pipeline.on_valves_update()
if hasattr(pipeline, "on_valves_updated"):
await pipeline.on_valves_updated()
except Exception as e:
print(e)
raise HTTPException(