Fix specific OSV get

This commit is contained in:
Mustafa Gezen 2023-03-23 12:59:33 +01:00
parent 6915813e2d
commit 1d90b6db2e
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -260,7 +260,7 @@ async def get_advisories_osv(
@router.get("/{advisory_id}", response_model=OSVAdvisory, response_model_exclude_none=True)
async def get_advisory_osv(advisory_id: str):
advisory = await Advisory.filter(name=advisory_id, type="Security").prefetch_related(
advisory = await Advisory.filter(name=advisory_id, kind="Security").prefetch_related(
"packages",
"cves",
"fixes",