Separate out a public and non-public halves to publicreport APIs
This prevents us from leaking text messaging details on public endpoints.
This commit is contained in:
parent
8fcd926d43
commit
8bdd18649d
12 changed files with 169 additions and 136 deletions
|
|
@ -275,7 +275,7 @@ func SignalList(ctx context.Context, user User, limit int) ([]*Signal, error) {
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("getting pools by ID: %w", err)
|
||||
}
|
||||
reports, err := publicreport.Reports(ctx, org_id, report_ids)
|
||||
reports, err := publicreport.Reports(ctx, org_id, report_ids, false)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("getting reports by ID: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue