srijeet0406 commented on a change in pull request #4734:
URL: https://github.com/apache/trafficcontrol/pull/4734#discussion_r432634725



##########
File path: traffic_ops/traffic_ops_golang/steeringtargets/steeringtargets.go
##########
@@ -159,7 +160,33 @@ 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) {
+       row := tx.QueryRow(`SELECT name FROM type WHERE id=$1`, typeID)

Review comment:
       Makes sense




----------------------------------------------------------------
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]


Reply via email to