Skip to content

Commit 4fd1587

Browse files
authored
- Fix parameters for child user pagination (#346)
1 parent 77cd5a8 commit 4fd1587

File tree

3 files changed

+105
-27
lines changed

3 files changed

+105
-27
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v7.4.0 (2024-07-24)
44

55
- Adds new `Claim` service for filing claims on EasyPost shipments and insurances
6+
- Fix parameters for retrieving next page of child users
67

78
## v7.3.0 (2024-07-12)
89

lib/EasyPost/Service/UserService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function getNextPageOfChildren(mixed $children, ?int $pageSize = null): m
179179

180180
$params = [
181181
'page_size' => $pageSize,
182-
'before_id' => $userArray[count($userArray) - 1]['id']
182+
'after_id' => $userArray[count($userArray) - 1]['id']
183183
];
184184

185185
if (isset($userParams)) {

test/cassettes/users/getNextPageOfChildren.yml

+103-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)