rob05c commented on a change in pull request #5044:
URL: https://github.com/apache/trafficcontrol/pull/5044#discussion_r497603577



##########
File path: lib/go-tc/invalidationjobs.go
##########
@@ -272,9 +275,83 @@ func (job *InvalidationJobInput) Validate(tx *sql.Tx) 
error {
        if len(errs) > 0 {
                return errors.New(strings.Join(errs, ", "))
        }
+
+       errs = job.ValidateUniqueness(tx, dsID)
+       if len(errs) > 0 {
+               return errors.New(strings.Join(errs, ", "))

Review comment:
       https://godoc.org/github.com/apache/trafficcontrol/lib/go-util#JoinErrs 
might be useful




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