From 0289bf5756e0911784d4fadb069028bcd09994f1 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 24 Mar 2026 08:24:36 -0700 Subject: [PATCH] Fix retrieval of reports by ID --- 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 05a2a2a1..e634fe45 100644 --- a/platform/publicreport/report.go +++ b/platform/publicreport/report.go @@ -72,7 +72,7 @@ func reportQueryToRows(ctx context.Context, org_id int32, query bob.BaseQuery[*d func Reports(ctx context.Context, org_id int32, ids []int32) ([]*types.Report, error) { query := reportQuery(org_id) query.Apply( - sm.Where(psql.Quote("publicreport", "report", "reviewed").IsNull()), + sm.Where(psql.Quote("publicreport", "report", "id").EQ(psql.Any(ids))), ) return reportQueryToRows(ctx, org_id, query) }