Skip to content

Commit

Permalink
Refs #33107: /carts/personal-details-update-requests - params shoul…
Browse files Browse the repository at this point in the history
…d be passed in the body; Magento method doesn't return anything
  • Loading branch information
gorbunovav committed Sep 20, 2024
1 parent 90cbc6d commit 05a3c85
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/api/extensions/budsies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,21 +223,7 @@ module.exports = ({ config, db }) => {

let url = `/carts/personal-details-update-requests`;

const queryParams = new URLSearchParams();

const cartId = req.query.cartId;

if (cartId !== undefined) {
queryParams.append('cartId', cartId);
}

if (queryParams.toString() !== '') {
url += '?' + queryParams.toString();
}

return restClient.post(url, req.body, customerToken).then((data) => {
return data.quote_id;
});
return restClient.post(url, req.body, customerToken);
}

return module;
Expand Down

0 comments on commit 05a3c85

Please sign in to comment.