Skip to content

Commit

Permalink
Fix pagination on greenhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
hassan254-prog committed Jan 17, 2024
1 parent d073d8a commit 83af557
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default async function fetchData(nango: NangoSync) {
...(nango.lastSyncDate ? { params: { created_after: nango.lastSyncDate?.toISOString() } } : {}),
paginate: {
type: 'link',
link_path_in_response_body: 'links.next',
limit_name_in_request: 'per_page',
link_rel_in_response_header: 'next',
limit: 100
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default async function fetchData(nango: NangoSync) {
...(nango.lastSyncDate ? { params: { created_after: nango.lastSyncDate?.toISOString() } } : {}),
paginate: {
type: 'link',
link_path_in_response_body: 'links.next',
limit_name_in_request: 'per_page',
link_rel_in_response_header: 'next',
limit: 100
}
};
Expand Down
2 changes: 1 addition & 1 deletion integration-templates/greenhouse-basic/greenhouse-jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default async function fetchData(nango: NangoSync) {
...(nango.lastSyncDate ? { params: { created_after: nango.lastSyncDate?.toISOString() } } : {}),
paginate: {
type: 'link',
link_path_in_response_body: 'links.next',
limit_name_in_request: 'per_page',
link_rel_in_response_header: 'next',
limit: 100
}
};
Expand Down

0 comments on commit 83af557

Please sign in to comment.