Skip to content

Commit

Permalink
Fix problem where infinite loop was created since wrong pagination ty…
Browse files Browse the repository at this point in the history
…pe was added
  • Loading branch information
kjellknapen committed Nov 8, 2022
1 parent 1e7ab9e commit 7c1477f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/endpoints/raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default {
const { items, _links } = await this.get(http, url, {
params: {
...(search_after ? { search_after } : {}),
pagination_type: 'search_after',
limit: 100,
},
});
Expand All @@ -98,6 +99,7 @@ export default {
params: {
...params,
limit: params?.limit || 100,
pagination_type: 'search_after',
search_after:
_links?.next?.href && _links?.next?.href.split('?')[1]
? qs.parse(_links?.next?.href.split('?')[1]).search_after
Expand Down

0 comments on commit 7c1477f

Please sign in to comment.