Skip to content

Commit

Permalink
Merge pull request #1069 from psyray/fix-domain-id-missing
Browse files Browse the repository at this point in the history
Add missing domain id value in subscan
  • Loading branch information
yogeshojha authored Nov 23, 2023
2 parents 10afeeb + e170872 commit 6c1ec31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ def initiate_subscan(
url_filter (str): URL path. Default: ''
"""

# Get Subdomain and ScanHistory
# Get Subdomain, Domain and ScanHistory
subdomain = Subdomain.objects.get(pk=subdomain_id)
scan = ScanHistory.objects.get(pk=subdomain.scan_history.id)
domain = Domain.objects.get(pk=subdomain.target_domain.id)

# Get EngineType
engine_id = engine_id or scan.scan_type.id
Expand Down Expand Up @@ -270,6 +271,7 @@ def initiate_subscan(
'scan_history_id': scan.id,
'subscan_id': subscan.id,
'engine_id': engine_id,
'domain_id': domain.id,
'subdomain_id': subdomain.id,
'yaml_configuration': config,
'results_dir': results_dir,
Expand Down

0 comments on commit 6c1ec31

Please sign in to comment.