Skip to content

Commit

Permalink
fix(resolution): release Lock
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bétrancourt <thomas@betrancourt.net>
  • Loading branch information
rclsilver committed Jun 28, 2023
1 parent 359f856 commit 449dca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/handler/resolution.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func UpdateResolution(c *gin.Context, in *updateResolutionIn) error {
// valid and normalize steps
for name, st := range r.Steps {
if err := st.ValidAndNormalize(name, tt.BaseConfigurations, r.Steps); err != nil {
_ = dbp.Rollback()
return errors.NewNotValid(err, fmt.Sprintf("invalid step %s", name))
}

Expand Down

0 comments on commit 449dca1

Please sign in to comment.