Don't error out on missing report
This commit is contained in:
parent
7e79308868
commit
c6cb645453
2 changed files with 30 additions and 33 deletions
|
|
@ -53,9 +53,6 @@ func GenerateReportID() (string, error) {
|
|||
return builder.String(), nil
|
||||
}
|
||||
|
||||
func PublicReportByID(ctx context.Context, report_id string, is_public bool) (*types.PublicReport, error) {
|
||||
return publicreport.ByID(ctx, report_id, is_public)
|
||||
}
|
||||
func PublicReportByIDCompliance(ctx context.Context, report_id string, is_public bool) (*types.PublicReportCompliance, error) {
|
||||
result, err := publicreport.ByIDCompliance(ctx, report_id, is_public)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue