Skip to content

Commit

Permalink
use engagement_end_date (#11174)
Browse files Browse the repository at this point in the history
  • Loading branch information
hblankenship authored Nov 1, 2024
1 parent 4b5c992 commit 68e0a8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,13 @@ def setup_common_context(self, data: dict) -> dict:
if context.get("scan_date")
else None
)

# engagement end date was not being used at all and so target_end would also turn into None
# in this case, do not want to change target_end unless engagement_end exists
eng_end_date = context.get("engagement_end_date", None)
if eng_end_date:
context["target_end"] = context.get("engagement_end_date")

return context


Expand Down

0 comments on commit 68e0a8b

Please sign in to comment.