From 5194ea4b29ffef0fe5206899243339cf109af41d Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 17 May 2024 23:15:56 +0200 Subject: model: Fix another unhandled error This could also lead to bugs. --- model/step.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model') 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 } -- cgit v1.2.3-70-g09d2