Skip to content

Commit

Permalink
fix: page size fixed irrespectiveof suppressAPIToken (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurav-malani authored Oct 25, 2022
1 parent 9196f8f commit 71d8c99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enterprise/suppress-user/suppressUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ func (suppressUser *SuppressRegulationHandler) getSourceRegulationsFromRegulatio

urlStr := fmt.Sprintf("%s/dataplane/workspaces/%s/regulations/suppressions", suppressUser.RegulationBackendURL, suppressUser.WorkspaceID)
urlValQuery := url.Values{}
if suppressUser.pageSize != "" {
urlValQuery.Set("pageSize", suppressUser.pageSize)
}
if suppressUser.suppressAPIToken != "" {
urlValQuery.Set("pageToken", suppressUser.suppressAPIToken)
urlValQuery.Set("pageSize", suppressUser.pageSize)
}
if len(urlValQuery) > 0 {
urlStr += "?" + urlValQuery.Encode()
Expand Down

0 comments on commit 71d8c99

Please sign in to comment.