Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
fix crush during patch (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
fishkerez authored Mar 5, 2023
1 parent c939dce commit cc92e9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/pkg/rest/convert/resttodb/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ func ConvertScan(scan *models.Scan, id string) (*database.Scan, error) {
}
}

ret.ScanConfigID = &scan.ScanConfig.Id
if scan.ScanConfig != nil {
ret.ScanConfigID = &scan.ScanConfig.Id
}

ret.ScanEndTime = scan.EndTime

Expand Down

0 comments on commit cc92e9e

Please sign in to comment.