Skip to content

Commit 05462d2

Browse files
author
lleadbet
committed
fixing tests
1 parent 81f7bce commit 05462d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func NewRequest(method string, path string, queryParameters []string, body []byt
107107
}
108108

109109
d := data.Data.([]interface{})
110-
if strings.Contains(path, "schedule") {
110+
if strings.Contains(path, "schedule") || apiResponse.Data == nil {
111111
data.Data = append(d, apiResponse.Data)
112112
} else {
113113
data.Data = append(d, apiResponse.Data.([]interface{})...)

0 commit comments

Comments
 (0)