Commit b33580f9 authored by scardoso's avatar scardoso

Use Gitlab::Vulnerability::Summary to get summary

parent a7cddf87
......@@ -23,11 +23,11 @@ module ProjectVulnerabilityFindingsActions
end
def summary
vulnerabilities_summary = vulnerability_findings.counted_by_severity
summary = Gitlab::Vulnerabilities::Summary.new(group, filter_params).vulnerabilities_counter
respond_to do |format|
format.json do
render json: VulnerabilitySummarySerializer.new.represent(vulnerabilities_summary)
render json: summary
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment