Return nil through on by id compliance
This commit is contained in:
parent
c6cb645453
commit
a1b2d580a8
1 changed files with 3 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ func PublicReportByIDCompliance(ctx context.Context, report_id string, is_public
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("byidcompliance: %w", err)
|
||||
}
|
||||
if result == nil {
|
||||
return nil, nil
|
||||
}
|
||||
// Check for evidence if this is a mailer-based compliance request
|
||||
crr, err := ComplianceReportRequestFromPublicID(ctx, result.PublicID)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue