Skip to content

Commit d5a8299

Browse files
committed
added limit to the agreements
1 parent 952c5e4 commit d5a8299

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/docusign/controller/navigator/services/NavigatorMethodsService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
public class NavigatorMethodsService {
1111

12+
private static final Integer AGREEMENTS_LIMIT = 25;
1213
private static IamClient createIamClient(String accessToken) {
1314
return IamClient.builder()
1415
.accessToken(accessToken)
@@ -21,6 +22,7 @@ public static GetAgreementsListResponse getAgreements(String accountId, String a
2122
.agreements()
2223
.getAgreementsList()
2324
.accountId(accountId)
25+
.limit(AGREEMENTS_LIMIT)
2426
.call();
2527
}
2628

0 commit comments

Comments
 (0)