Skip to content

Commit

Permalink
bug: make until parameter to shift resource optional (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
maltelehmann authored Oct 3, 2024
1 parent b7cb6cd commit fab8d66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions on_call_shift.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ type OnCallShift struct {
Name string `json:"name"`
Level int `json:"level"`
Start string `json:"start"`
Until string `json:"until"`
Duration int `json:"duration"`
Until *string `json:"until"`
Frequency *string `json:"frequency"`
Users *[]string `json:"users"`
Interval *int `json:"interval"`
Expand Down Expand Up @@ -102,8 +102,8 @@ type CreateOnCallShiftOptions struct {
Name string `json:"name"`
Level *int `json:"level,omitempty"`
Start string `json:"start"`
Until string `json:"until"`
Duration int `json:"duration"`
Until *string `json:"until"`
Frequency *string `json:"frequency"`
Users *[]string `json:"users"`
Interval *int `json:"interval"`
Expand Down Expand Up @@ -144,8 +144,8 @@ type UpdateOnCallShiftOptions struct {
TeamId string `json:"team_id"`
Level *int `json:"level,omitempty"`
Start string `json:"start"`
Until string `json:"until"`
Duration int `json:"duration"`
Until *string `json:"until"`
Frequency *string `json:"frequency"`
Users *[]string `json:"users"`
Interval *int `json:"interval"`
Expand Down

0 comments on commit fab8d66

Please sign in to comment.