Skip to content

Commit

Permalink
... again..
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-corbalt committed Mar 7, 2024
1 parent 1bbccb0 commit 00cdeee
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
33 changes: 16 additions & 17 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/libs/jira-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class Jira {
let total = 0;

do {
try {
//try {
const response = await this.axiosInstance.post('/rest/api/2/search', {
jql: fullQuery,
startAt: startAt,
Expand All @@ -155,10 +155,10 @@ export class Jira {
totalIssuesReceived += results.issues.length;
startAt = totalIssuesReceived;
total = results.total;
} catch (error) {
throw new Error(`Error getting Security Hub issues from Jira: ${error}`);
//} catch (error) {
// throw new Error(`Error getting Security Hub issues from Jira: ${error}`);
//throw new Error(`Error getting Security Hub issues from Jira: ${error instanceof AggregateError ? error.message : error}`);
}
//}
} while (totalIssuesReceived < total);

return allIssues;
Expand Down

0 comments on commit 00cdeee

Please sign in to comment.