rawlinp commented on a change in pull request #4734:
URL: https://github.com/apache/trafficcontrol/pull/4734#discussion_r432736039
##########
File path: traffic_ops/traffic_ops_golang/steeringtargets/steeringtargets.go
##########
@@ -159,7 +160,30 @@ func read(tx *sqlx.Tx, parameters map[string]string, user
*auth.CurrentUser) ([]
return filteredTargets, nil, nil, http.StatusOK
}
+func checkTypeValidity(typeID int, tx *sqlx.Tx) (bool, error) {
Review comment:
I was thinking we might've had a function that did this exact same thing
already, and while reviewing another PR I found it (in lib/go-tc):
```
tc.ValidateTypeID(tx, s.TypeID, "server")
```
We should use that function instead.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]