Skip to content

Commit

Permalink
refactor(requestHelper): getAllRecursively now uses requestParams ins…
Browse files Browse the repository at this point in the history
…tead of limit

BREAKING CHANGE: requestHelper.getAllRecursively now uses requestParams instead of limit
  • Loading branch information
Josh Fisher committed Sep 20, 2021
1 parent aecd01c commit 2551195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ import { getAllRecursively } from '../../../src/util/requestHelpers';

const walmartApi = new WalmartApi(...);
const ordersApi = await walmartApi.getConfiguredApi(...);
const orders = await getAllRecursively(ordersApi, ordersApi.getAllOrders.name);
const requestParams = {limit: 20};
const orders = await getAllRecursively(ordersApi, ordersApi.getAllOrders.name, requestParams);
```

## Docs
Expand Down

0 comments on commit 2551195

Please # to comment.