mirror of
https://github.com/DarthKilroy/Spot.git
synced 2026-02-04 10:36: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 issues = [];
|
||||||
const httpParams = Object.keys(params).map(key => `${key}=${params[key]}`).join('&');
|
|
||||||
const url = `${Config.jira.baseUrl}${ENDPOINTS.search}?${httpParams}`;
|
|
||||||
let response = null;
|
let response = null;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
const httpParams = Object.keys(params).map(key => `${key}=${params[key]}`).join('&');
|
||||||
|
const url = `${Config.jira.baseUrl}${ENDPOINTS.search}?${httpParams}`;
|
||||||
response = await axios(url);
|
response = await axios(url);
|
||||||
|
|
||||||
issues.push(...response.data.issues);
|
issues.push(...response.data.issues);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue