Fix tracking report type through the system

This commit is contained in:
Eli Ribble 2026-03-18 19:25:52 +00:00
parent 5cfd16e6a0
commit 28714b06b8
No known key found for this signature in database
3 changed files with 5 additions and 1 deletions

View file

@ -29,6 +29,7 @@ type Report struct {
PublicID string `db:"public_id" json:"public_id"`
Reporter types.Contact `db:"reporter" json:"reporter"`
Status string `db:"status" json:"status"`
Type string `db:"report_type" json:"type"`
Water *Water `db:"water" json:"water"`
}
@ -47,6 +48,7 @@ func ReportsForOrganization(ctx context.Context, org_id int32) ([]*Report, error
"ST_Y(location::geometry::geometry(point, 4326)) AS \"location.latitude\"",
"ST_X(location::geometry::geometry(point, 4326)) AS \"location.longitude\"",
"public_id",
"report_type",
"reporter_email AS \"reporter.email\"",
"reporter_name AS \"reporter.name\"",
"reporter_phone AS \"reporter.phone\"",