From 7e79308868c16622d4be95cbaee6ad0131ee797b Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 29 Apr 2026 20:18:36 +0000 Subject: [PATCH] Don't return an error when report doesn't exist --- platform/publicreport/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/publicreport/report.go b/platform/publicreport/report.go index e2e20386..fc11fda1 100644 --- a/platform/publicreport/report.go +++ b/platform/publicreport/report.go @@ -26,7 +26,7 @@ func ByID(ctx context.Context, public_id string, is_public bool) (*types.PublicR } log.Debug().Str("public_id", public_id).Int("len", len(reports)).Msg("querying for publicreport by ID") if len(reports) != 1 { - return nil, fmt.Errorf("reports returned: %d", len(reports)) + return nil, nil } return reports[0], nil }