Skip to content

Commit

Permalink
fix(sonarqube): fix error that cannot return more than 10000 records (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
warren830 authored Mar 7, 2023
1 parent 16cf124 commit 089a09e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/plugins/sonarqube/tasks/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func GetTotalPagesFromResponse(res *http.Response, args *api.ApiCollectorArgs) (
if body.Paging.Total%args.PageSize > 0 {
pages++
}
if pages > 100 {
pages = 100
}
return pages, nil
}

Expand Down

0 comments on commit 089a09e

Please sign in to comment.