Fix public report ID for water reports

This commit is contained in:
Eli Ribble 2026-04-14 15:28:41 +00:00
parent c84a2ef42b
commit 9b1de15373
No known key found for this signature in database

View file

@ -28,7 +28,7 @@ type waterR struct {
}
type water struct {
District string `json:"district"`
ID string `json:"id"`
PublicID string `json:"public_id"`
URI string `json:"uri"`
}
type waterForm struct {
@ -124,7 +124,7 @@ func (res *waterR) Create(ctx context.Context, r *http.Request, w waterForm) (*w
}
return &water{
District: district_uri,
ID: report.PublicID,
PublicID: report.PublicID,
URI: uri,
}, nil
}