diff options
Diffstat (limited to 'model/step.go')
-rw-r--r-- | model/step.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/step.go b/model/step.go index 74b4f48..e3fa24b 100644 --- a/model/step.go +++ b/model/step.go @@ -146,7 +146,7 @@ func (s *Step) Update(tx *sql.Tx) error { for i := range s.Ingredients { s.Ingredients[i].Index = fmt.Sprint(i) s.Ingredients[i].Step = s.Id - s.Ingredients[i].Create(tx) + err = s.Ingredients[i].Create(tx) if err != nil { return err } |