chore: workflow internals improvementss (#9455)

This commit is contained in:
Adrien de Peretti
2024-10-10 09:11:56 +02:00
committed by GitHub
parent 1b9379be62
commit 34d57870ad
26 changed files with 354 additions and 206 deletions
@@ -21,7 +21,7 @@ export const POST = async (
await addToCartWorkflow(req.scope).run({
input: workflowInput,
})
} as any)
const updatedCart = await refetchCart(
req.params.id,
@@ -2,6 +2,7 @@ export const defaultStoreCartFields = [
"id",
"currency_code",
"email",
"region_id",
"created_at",
"updated_at",
"completed_at",
@@ -33,6 +34,7 @@ export const defaultStoreCartFields = [
"promotions.application_method.type",
"promotions.application_method.currency_code",
"items.id",
"items.product.id",
"items.variant_id",
"items.product_id",
"items.product.categories.id",