Skip to content

Commit

Permalink
Fixed mistake where move update was inside the mobile home/boat if-block
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooklyn Welsh committed Sep 23, 2024
1 parent e8b9f14 commit de174ad
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/services/move/move_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,11 @@ func (router moveRouter) sendToServiceCounselor(appCtx appcontext.AppContext, mo
}
}
}

if verrs, err := appCtx.DB().ValidateAndSave(move); verrs.HasAny() || err != nil {
msg := "failure saving move when routing move submission"
appCtx.Logger().Error(msg, zap.Error(err))
return apperror.NewInvalidInputError(move.ID, err, verrs, msg)
}
}
if verrs, err := appCtx.DB().ValidateAndSave(move); verrs.HasAny() || err != nil {
msg := "failure saving move when routing move submission"
appCtx.Logger().Error(msg, zap.Error(err))
return apperror.NewInvalidInputError(move.ID, err, verrs, msg)
}
return nil
}
Expand Down

0 comments on commit de174ad

Please sign in to comment.