Fix updating pipelines
This commit is contained in:
parent
c37ab63bce
commit
ecaf4c78b7
|
@ -95,7 +95,7 @@ defmodule FrenzyWeb.PipelineController do
|
||||||
|
|
||||||
with {:ok, stages} <- Jason.decode(stages_json),
|
with {:ok, stages} <- Jason.decode(stages_json),
|
||||||
{:ok, stages} <- validate_pipeline(stages) do
|
{:ok, stages} <- validate_pipeline(stages) do
|
||||||
changeset = Pipeline.changeset(%Pipeline{}, %{name: name, stages: stages})
|
changeset = Pipeline.changeset(pipeline, %{name: name, stages: stages})
|
||||||
|
|
||||||
{:ok, _pipeline} = Repo.update(changeset)
|
{:ok, _pipeline} = Repo.update(changeset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue