commercetools / commercetools/nodejs

`customerId` and `cartId` params not being reset between calls to `build`

Open
#1,627 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.