commercetools / commercetools/nodejs
`customerId` and `cartId` params not being reset between calls to `build`
Open
- Dominant language
- JavaScript
- Stars
- 77
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
### Description
When using `byCustomerId` or `byCartId` in `api-request-builder`, the locally stored params are not cleared before the next call to `build`.
### Expected Behavior
The `setDefaultParams` function should reset the `customerId` and `cartId` params.
### Current Behavior
The `customerId` and `cartId` params are not cleared between calls to `build`.
### Context
This bug was discovered when attempting to build multiple queries, one after the other.
### Possible Solution
Will create a PR shortly.
Contributor guide
Assessment
This issue has not been assessed yet.