Skip to content

Commit

Permalink
Fix dnssec refresh endpoint (#4386)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoppa committed Feb 20, 2020
1 parent 73bf53a commit 07d750d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions traffic_ops/traffic_ops_golang/cdn/dnssecrefresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,11 @@ WITH cdn_profile_ids AS (
FROM
cdn c
LEFT JOIN profile p ON c.id = p.cdn AND (p.name like 'CCR%' OR p.name like 'TR%')
GROUP BY c.name, c.dnssec_enabled
GROUP BY c.name, c.dnssec_enabled, c.domain_name
)
SELECT
DISTINCT(pi.cdn_name),
pi.cdn_domain,
pi.cdn_dnssec_enabled,
MAX(pa.name) as parameter_name,
MAX(pa.value) as parameter_value
Expand All @@ -303,7 +304,7 @@ FROM
OR pa.name = 'DNSKEY.effective.multiplier'
OR pa.name = 'DNSKEY.generation.multiplier'
)
GROUP BY pi.cdn_name, pi.cdn_dnssec_enabled
GROUP BY pi.cdn_name, pi.cdn_domain, pi.cdn_dnssec_enabled
`
rows, err := tx.Query(qry)
if err != nil {
Expand Down

0 comments on commit 07d750d

Please sign in to comment.