Skip to content

Commit ba00f5f

Browse files
author
lleadbet
committed
Adding exclusion for schedule APIs
1 parent cbefd55 commit ba00f5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/api/api.go

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

109109
d := data.Data.([]interface{})
110-
data.Data = append(d, apiResponse.Data.([]interface{})...)
110+
if strings.Contains(path, "schedule") {
111+
data.Data = append(d, apiResponse.Data)
112+
} else {
113+
data.Data = append(d, apiResponse.Data.([]interface{})...)
114+
}
111115

112116
if apiResponse.Pagination == nil || *&apiResponse.Pagination.Cursor == "" {
113117
break

0 commit comments

Comments
 (0)