Skip to content

Commit 449dca1

Browse files
committed
fix(resolution): release Lock
Signed-off-by: Thomas Bétrancourt <thomas@betrancourt.net>
1 parent 359f856 commit 449dca1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/handler/resolution.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ func UpdateResolution(c *gin.Context, in *updateResolutionIn) error {
296296
// valid and normalize steps
297297
for name, st := range r.Steps {
298298
if err := st.ValidAndNormalize(name, tt.BaseConfigurations, r.Steps); err != nil {
299+
_ = dbp.Rollback()
299300
return errors.NewNotValid(err, fmt.Sprintf("invalid step %s", name))
300301
}
301302

0 commit comments

Comments
 (0)