From a1b2d580a892860b89a76dc2300a6f9e75308a51 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 29 Apr 2026 20:37:36 +0000 Subject: [PATCH] Return nil through on by id compliance --- platform/publicreport.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/publicreport.go b/platform/publicreport.go index 02122d55..8f47f115 100644 --- a/platform/publicreport.go +++ b/platform/publicreport.go @@ -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 {