diff --git a/lib/snyk.js b/lib/snyk.js index b21c179..8625aad 100644 --- a/lib/snyk.js +++ b/lib/snyk.js @@ -132,7 +132,7 @@ async function paginateRestResponseData (url, headers, method = 'get') { json: true }) reponseData.push(...response.data) - if (response.links.next) url = baseRestUrl + response.links.next.replace('/rest','') + if (response.links.next) url = baseRestUrl + response.links.next.replace('/rest', '') else url = undefined } while (url)