Skip to content

Commit

Permalink
chore: add new update cart prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusTrindade5201 committed Oct 14, 2024
1 parent 2a29cd2 commit c4527b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vtex/actions/cart/updateItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Item {
export interface Props {
orderItems: Item[];
allowedOutdatedData?: Array<"paymentData">;
noSplitItem?: boolean;
}

/**
Expand All @@ -26,6 +27,7 @@ const action = async (
const {
orderItems,
allowedOutdatedData = ["paymentData"],
noSplitItem,
} = props;
const { orderFormId } = parseCookie(req.headers);
const cookie = req.headers.get("cookie") ?? "";
Expand All @@ -37,7 +39,7 @@ const action = async (
allowedOutdatedData,
sc: segment?.payload.channel,
}, {
body: { orderItems },
body: { orderItems, noSplitItem: Boolean(noSplitItem) },
headers: {
"content-type": "application/json",
accept: "application/json",
Expand Down

0 comments on commit c4527b4

Please sign in to comment.