summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model/recipe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/recipe.go b/model/recipe.go
index a9bd0fe..e49c188 100644
--- a/model/recipe.go
+++ b/model/recipe.go
@@ -201,7 +201,7 @@ func (r *Recipe) Update(tx *sql.Tx) error {
for i := range r.Steps {
r.Steps[i].Index = fmt.Sprint(i)
r.Steps[i].Recipe = r.Id
- r.Steps[i].Create(tx)
+ err = r.Steps[i].Create(tx)
if err != nil {
return err
}