summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-17 23:15:56 +0200
committerxengineering <me@xengineering.eu>2024-05-17 23:15:56 +0200
commit5194ea4b29ffef0fe5206899243339cf109af41d (patch)
tree0a510fceaf04df63c8c57a61c31a1a57bd51be2b
parent5d5580285a366e37ac00a4e1a6f2f1bda853ff28 (diff)
downloadceres-5194ea4b29ffef0fe5206899243339cf109af41d.tar
ceres-5194ea4b29ffef0fe5206899243339cf109af41d.tar.zst
ceres-5194ea4b29ffef0fe5206899243339cf109af41d.zip
model: Fix another unhandled error
This could also lead to bugs.
-rw-r--r--model/step.go2
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
}