Skip to content

Commit

Permalink
fix: Wrong endpoint being passed during pagination
Browse files Browse the repository at this point in the history
fixes: #344
  • Loading branch information
jdalrymple committed Jun 11, 2019
1 parent 21c91c3 commit a2a6126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infrastructure/RequestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function get(
// Rescurse through pagination results
if (!query.page && underLimit && pagination.next) {
const { next } = Li.parse(headers.link);
const more = await get(service, next.replace(/.+\/api\/v\d\//, ''), {
const more = await get(service, next.replace(service.url, ''), {
maxPages,
sudo,
showPagination: true
Expand Down

0 comments on commit a2a6126

Please sign in to comment.