Skip to content

Commit 49208f1

Browse files
only default limit if not provided (#551)
1 parent 01c2c85 commit 49208f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/wrappers/projects-http.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ func (p *ProjectsHTTPWrapper) Get(params map[string]string) (
7979
*ProjectsCollectionResponseModel,
8080
*ErrorModel, error) {
8181
clientTimeout := viper.GetUint(commonParams.ClientTimeoutKey)
82-
params["limit"] = limitValue
82+
83+
if _, ok := params[limit]; !ok {
84+
params[limit] = limitValue
85+
}
86+
8387
resp, err := SendHTTPRequestWithQueryParams(http.MethodGet, p.path, params, nil, clientTimeout)
8488
if err != nil {
8589
return nil, nil, err

0 commit comments

Comments
 (0)