From 59bf9afd480212ece78b6b5feea776a2b826d0ca Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Tue, 19 Nov 2024 12:46:49 +0100 Subject: [PATCH] fix(core-flows): Add missing cart sales channel id fields to be part of the application context (#10142) RESOLVES SUP-185 **What** The cart fields to be fetched for the promotion workflow was not including the sales_channel_id, making any rules being constraint to that fields not being validated against this property. --- packages/core/core-flows/src/cart/utils/fields.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/core-flows/src/cart/utils/fields.ts b/packages/core/core-flows/src/cart/utils/fields.ts index 1de3548e7d..9d58454953 100644 --- a/packages/core/core-flows/src/cart/utils/fields.ts +++ b/packages/core/core-flows/src/cart/utils/fields.ts @@ -9,6 +9,7 @@ export const cartFieldsForRefreshSteps = [ "currency_code", "metadata", "completed_at", + "sales_channel_id", "region.*", "items.*", "items.product.id",