Properly set public ID
This commit is contained in:
parent
5527731e83
commit
c84a2ef42b
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ type nuisanceR struct {
|
|||
}
|
||||
type nuisance struct {
|
||||
District string `json:"district"`
|
||||
ID string `json:"id"`
|
||||
PublicID string `json:"public_id"`
|
||||
URI string `json:"uri"`
|
||||
}
|
||||
type nuisanceForm struct {
|
||||
|
|
@ -130,7 +130,7 @@ func (res *nuisanceR) Create(ctx context.Context, r *http.Request, n nuisanceFor
|
|||
}
|
||||
return &nuisance{
|
||||
District: district_uri,
|
||||
ID: report.PublicID,
|
||||
PublicID: report.PublicID,
|
||||
URI: uri,
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue