Fix retrieval of reports by ID
This commit is contained in:
parent
6f45325d9d
commit
0289bf5756
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue