Skip to content

Commit

Permalink
pi: Fix typo in Summary.Status field json key.
Browse files Browse the repository at this point in the history
This diff fixes a typo in the pi API Summary struct where the json key
of Status was defined as "string" instead of "status".
  • Loading branch information
amass01 authored Sep 26, 2021
1 parent b8348c2 commit 29e31d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion politeiawww/api/pi/v1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,6 @@ type SummariesReply struct {
// reason to be given. Examples include when a proposal is censored/abandoned
// or when the billing status of the proposal is set to closed.
type Summary struct {
Status string `json:"string"`
Status string `json:"status"`
StatusReason string `json:"statusreason"`
}

0 comments on commit 29e31d9

Please sign in to comment.