Skip to content

Commit

Permalink
Adjusted batch processing to ensure the correct CVE's are added to th…
Browse files Browse the repository at this point in the history
…e out list
  • Loading branch information
ctevse committed Nov 3, 2023
1 parent e5fab19 commit b1ae1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler/src/main/java/edu/rit/se/nvip/CrawlerMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ private void insertRawCVEsAndPrepareMessage(HashMap<String, ArrayList<RawVulnera
// Sends a JSON object with an array of CVE IDs that require reconciliation
Gson gson = new Gson();

String cveArray = gson.toJson(insertedVulns.stream().map(RawVulnerability::getCveId).toList());
String cveArray = gson.toJson(insertedVulns.stream().map(RawVulnerability::getCveId).peek(log::info).toList());
Map<String, String> messageBody = new HashMap<>();
messageBody.put("cves", cveArray);

Expand Down

0 comments on commit b1ae1a6

Please sign in to comment.