From fab8d663260543a67da74a53af9c3a6fffdeef2a Mon Sep 17 00:00:00 2001 From: maltelehmann <54817802+maltelehmann@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:12:00 +0200 Subject: [PATCH] bug: make `until` parameter to shift resource optional (#22) --- on_call_shift.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/on_call_shift.go b/on_call_shift.go index f24cc9a..9a97a65 100644 --- a/on_call_shift.go +++ b/on_call_shift.go @@ -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"` @@ -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"` @@ -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"`