Fix compliance query
I can't use this until I fix some bugs in bob :(
This commit is contained in:
parent
2b30411c1b
commit
8d37e8fab5
1 changed files with 1 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ func compliance(ctx context.Context, public_id string, report *types.PublicRepor
|
|||
models.PublicreportCompliances.Columns.ReportPhoneCanText,
|
||||
models.PublicreportCompliances.Columns.WantsScheduled,
|
||||
),
|
||||
sm.From(models.PublicreportCompliances.Name()),
|
||||
sm.From("publicreport.compliance"),
|
||||
sm.Where(models.PublicreportCompliances.Columns.ReportID.EQ(
|
||||
psql.Arg(report.ID),
|
||||
)),
|
||||
|
|
@ -38,7 +38,6 @@ func compliance(ctx context.Context, public_id string, report *types.PublicRepor
|
|||
return nil, fmt.Errorf("query compliance: %w", err)
|
||||
}
|
||||
copyReportContent(report, &row.PublicReport)
|
||||
|
||||
return &row, nil
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue