Fix public report ID for water reports
This commit is contained in:
parent
c84a2ef42b
commit
9b1de15373
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue