Skip to content

Commit

Permalink
fix typo query status hotspots (#244)
Browse files Browse the repository at this point in the history
Co-authored-by: biennd4 <[email protected]>
  • Loading branch information
biennd279 and biennd4 authored Jan 16, 2024
1 parent f33eeb4 commit 3de0391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ const generateReport = async (options) => {
do {
try {
const response = await got(
`${sonarBaseURL}/api/hotspots/search?projectKey=${sonarComponent}${filterHotspots}${newCodePeriodFilter}${withOrganization}&ps=${pageSize}&p=${page}&statuses=${HOTSPOT_STATUSES}`,
`${sonarBaseURL}/api/hotspots/search?projectKey=${sonarComponent}${filterHotspots}${newCodePeriodFilter}${withOrganization}&ps=${pageSize}&p=${page}&status=${HOTSPOT_STATUSES}`,
{
agent,
headers,
Expand All @@ -535,7 +535,7 @@ const generateReport = async (options) => {
data.hotspotKeys.push(...json.hotspots.map((hotspot) => hotspot.key));
} catch (error) {
console.error(
`${sonarBaseURL}/api/hotspots/search?projectKey=${sonarComponent}${filterHotspots}${newCodePeriodFilter}${withOrganization}&ps=${pageSize}&p=${page}&statuses=${HOTSPOT_STATUSES}`
`${sonarBaseURL}/api/hotspots/search?projectKey=${sonarComponent}${filterHotspots}${newCodePeriodFilter}${withOrganization}&ps=${pageSize}&p=${page}&status=${HOTSPOT_STATUSES}`
);
logError("getting hotspots list", error);
return null;
Expand Down

0 comments on commit 3de0391

Please sign in to comment.