diff --git a/api/configs.go b/api/configs.go index 7a7b295..564ab3b 100644 --- a/api/configs.go +++ b/api/configs.go @@ -206,7 +206,7 @@ func (client *Client) GetConfigsByKey(key string, opts ...Option) (any, error) { return config, nil } -// TODO confirm client.Delete( does not take parameters and returns anything +// TODO confirm delete does not take parameters and returns anything func (client *Client) DeleteConfigsByKey(key string, opts ...Option) error { return client.Delete("/configs/"+key, nil, nil, opts...) } diff --git a/api/model.go b/api/model.go index af2d48d..311675f 100644 --- a/api/model.go +++ b/api/model.go @@ -15,7 +15,7 @@ type ( Minimum *int `json:"minimum,omitempty"` Category string `json:"category"` Type string `json:"type"` - TypeDate *Type `json:"type_data,omitempty"` + TypeData *Type `json:"type_data,omitempty"` State string `json:"state"` NextID *int `json:"next_id"` Requirements *Requirements `json:"requirements"` // List of challenge IDs to complete before