mirror of
https://github.com/DarthKilroy/Spot.git
synced 2026-02-04 02:26:48 +00:00
fix(jira): actually re-generate the URL at each loop iteration, as to not infinite loop
This commit is contained in:
parent
446ec117ff
commit
9bbc8847a6
1 changed files with 2 additions and 2 deletions
|
|
@ -19,11 +19,11 @@ class Jira
|
|||
}
|
||||
|
||||
const issues = [];
|
||||
const httpParams = Object.keys(params).map(key => `${key}=${params[key]}`).join('&');
|
||||
const url = `${Config.jira.baseUrl}${ENDPOINTS.search}?${httpParams}`;
|
||||
let response = null;
|
||||
|
||||
do {
|
||||
const httpParams = Object.keys(params).map(key => `${key}=${params[key]}`).join('&');
|
||||
const url = `${Config.jira.baseUrl}${ENDPOINTS.search}?${httpParams}`;
|
||||
response = await axios(url);
|
||||
|
||||
issues.push(...response.data.issues);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue