Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lleadbet committed Jul 16, 2021
1 parent ba00f5f commit cb0a99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func NewRequest(method string, path string, queryParameters []string, body []byt
}

d := data.Data.([]interface{})
if strings.Contains(path, "schedule") {
if strings.Contains(path, "schedule") || apiResponse.Data == nil {
data.Data = append(d, apiResponse.Data)
} else {
data.Data = append(d, apiResponse.Data.([]interface{})...)
Expand Down

0 comments on commit cb0a99c

Please sign in to comment.