Skip to content

Commit

Permalink
fix: sonarqube nextPageToken always empty (#7477)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh authored May 16, 2024
1 parent 3ae23bf commit e24102f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/plugins/sonarqube/api/remote_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ func querySonarqubeProjects(
})
}

if resBody.Paging.Total > resBody.Paging.PageIndex*resBody.Paging.PageSize {
nextPage = &SonarqubeRemotePagination{
Page: resBody.Paging.PageIndex + 1,
PageSize: resBody.Paging.PageSize,
}
}

return
}

Expand Down

0 comments on commit e24102f

Please sign in to comment.