Be consistent about using report.public_id over report.id
This commit is contained in:
parent
02139450c6
commit
3c62fe2ca1
9 changed files with 19 additions and 29 deletions
|
|
@ -28,7 +28,7 @@ type complianceR struct {
|
|||
}
|
||||
type compliance struct {
|
||||
District string `json:"district"`
|
||||
ID string `json:"id"`
|
||||
PublicID string `json:"public_id"`
|
||||
URI string `json:"uri"`
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ func (res *complianceR) Create(ctx context.Context, r *http.Request, n publicrep
|
|||
}
|
||||
return &compliance{
|
||||
District: district_uri,
|
||||
ID: report.PublicID,
|
||||
PublicID: report.PublicID,
|
||||
URI: uri,
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue