Skip to content

Commit 63d3d53

Browse files
adjust vulnerability id code
1 parent 2526743 commit 63d3d53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dojo/api_v2/serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,8 @@ def create(self, validated_data):
18861886
new_finding.reviewers.set(reviewers)
18871887
if parsed_vulnerability_ids:
18881888
save_vulnerability_ids(new_finding, parsed_vulnerability_ids)
1889+
# can we avoid this extra save? the cve has already been set above in validated_data. but there are no tests for this
1890+
new_finding.save()
18891891

18901892
if push_to_jira:
18911893
jira_helper.push_to_jira(new_finding)

0 commit comments

Comments
 (0)