Skip to content

Commit

Permalink
feat(Poll.Duration): add omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Jun 21, 2024
1 parent 2112864 commit 2254a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,7 @@ type Poll struct {
LayoutType PollLayoutType `json:"layout_type"`

// NOTE: should be set only on creation, when fetching use Expiry.
Duration int `json:"duration"`
Duration int `json:"duration,omitempty"`

// NOTE: available only when fetching.

Expand Down

0 comments on commit 2254a62

Please sign in to comment.