CloudFrontier icon indicating copy to clipboard operation
CloudFrontier copied to clipboard

Vulnerabilities API fix

Open lordlabuckdas opened this issue 5 years ago • 1 comments

Fixed to return the list of vulnerabilities (vulns) instead of the last vulnerability (vuln) in vulnerabilities.py

lordlabuckdas avatar Nov 21 '20 17:11 lordlabuckdas

The following code in the frontend can also be updated now:

https://github.com/riskprofiler/CloudFrontier/blob/490b2c0dc22f42dd0b10b0acf3e3e21e09dacb9c/frontend/src/components/internetAssets.vue#L653-L666

If I'm not wrong, then all of the above can be replaced with just:

this.vulnerabilities = vulnerabilities.data.data.vulnerabilities;

faheel avatar Nov 24 '20 10:11 faheel