Fix populating water report from ID, make ContactSimple
ContactSimple is the replacement for ContactReporter, which was the simplified form of a contact from a report. I made the name more generic and use it in the general report structures for consistency.
This commit is contained in:
parent
75d0283453
commit
5e103f46a0
14 changed files with 103 additions and 108 deletions
|
|
@ -81,7 +81,8 @@ func PublicReportByIDNuisance(ctx context.Context, report_id string, is_public b
|
|||
return publicreport.ByIDNuisance(ctx, report_id, is_public)
|
||||
}
|
||||
func PublicReportByIDWater(ctx context.Context, report_id string, is_public bool) (*types.PublicReportWater, error) {
|
||||
return publicreport.ByIDWater(ctx, report_id, is_public)
|
||||
result, err := publicreport.ByIDWater(ctx, report_id, is_public)
|
||||
return &result, err
|
||||
}
|
||||
func PublicReportInvalid(ctx context.Context, user User, public_id string) error {
|
||||
report, err := querypublicreport.ReportFromPublicID(ctx, db.PGInstance.PGXPool, public_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue