mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-12 10:57:16 +08:00
fix workflow edit api
This commit is contained in:
@@ -57,7 +57,10 @@ def update_workflow(workflow: schemas.Workflow,
|
||||
"""
|
||||
更新工作流
|
||||
"""
|
||||
Workflow.update(db, workflow)
|
||||
wf = Workflow.get(db, workflow.id)
|
||||
if not wf:
|
||||
return schemas.Response(success=False, message="工作流不存在")
|
||||
wf.update(db, workflow.dict())
|
||||
return schemas.Response(success=True, message="更新成功")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user