feat(workflows): inject step inputs into env; update returns workflow

This commit is contained in:
2026-07-20 14:37:36 +01:00
parent 05cd8e154b
commit f141767fc2
2 changed files with 20 additions and 1 deletions
+6 -1
View File
@@ -119,7 +119,12 @@ func updateWorkflow(c *gin.Context) {
return
}
services.LogEvent("workflow.updated", actorFromCtx(c), "", c.Param("id"), "workflow updated")
c.JSON(http.StatusOK, gin.H{"updated": true})
updated, err := services.GetWorkflow(c.Param("id"))
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
c.JSON(http.StatusOK, updated)
}
func deleteWorkflow(c *gin.Context) {