Skip to content

Commit

Permalink
Fix: Use correct oldest result date in vulns
Browse files Browse the repository at this point in the history
When parsing the result dates for vulnerabilities, the correct field is
now used for the oldest result.

When date parsing was added to the Vulnerability model class, the newest
date was used accidentally.
  • Loading branch information
timopollmeier committed Dec 12, 2023
1 parent 487b94a commit 2d4c73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gmp/models/vulnerability.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Vulnerability extends Model {

if (isDefined(ret.results)) {
ret.results.newest = parseDate(ret.results.newest);
ret.results.oldest = parseDate(ret.results.newest);
ret.results.oldest = parseDate(ret.results.oldest);
}

return ret;
Expand Down

0 comments on commit 2d4c73f

Please sign in to comment.