Merge pull request #350 from jdalrymple/344-pagination-url

This commit is contained in:
Justin Dalrymple 2019-06-11 14:11:40 -04:00 committed by GitHub
commit 44ee3bc2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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