Skip to content

Commit 1ec9d67

Browse files
committed
feat: exclude unreachable security contacts from packages API
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
1 parent 38974ab commit 1ec9d67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • services/libs/data-access-layer/src/osspckgs

services/libs/data-access-layer/src/osspckgs/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export async function getPackageDetailByPurl(
715715
FROM (
716716
SELECT channel, value, role, confidence, score
717717
FROM security_contacts
718-
WHERE repo_id = pr.repo_id AND deleted_at IS NULL
718+
WHERE repo_id = pr.repo_id AND deleted_at IS NULL AND reachable
719719
ORDER BY score DESC
720720
LIMIT 5
721721
) sc

0 commit comments

Comments
 (0)