Skip to content

Commit

Permalink
Deduplicate results of package-specific advisory listing
Browse files Browse the repository at this point in the history
  • Loading branch information
tchoutri committed Dec 27, 2024
1 parent f9661b2 commit 521f19c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/advisories/Advisories/Model/Affected/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ SELECT s0.hsec_id
, s0.published
, a1.cvss
FROM security_advisories AS s0
INNER JOIN affected_packages AS a1 ON s0.advisory_id = a1.advisory_id
INNER JOIN affected_packages AS a1 ON s0.advisory_id = a1.advisory_id
INNER JOIN affected_version_ranges AS a2 ON a1.affected_package_id = a2.affected_package_id
INNER JOIN packages AS p3 ON a1.package_id = p3.package_id
WHERE a1.package_id = ?
GROUP BY s0.hsec_id, p3.namespace, p3.name, s0.summary, fixed, s0.published, a1.cvss
|]
(Only packageId)

Expand Down

0 comments on commit 521f19c

Please sign in to comment.