From 8f8e2f5a65c2ddb55b8f368b51990d1aec990b32 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 28 Aug 2024 12:16:30 +0300 Subject: [PATCH] fix(medusa): use correct request type for create cart API route (#8820) --- packages/medusa/src/api/store/carts/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/medusa/src/api/store/carts/route.ts b/packages/medusa/src/api/store/carts/route.ts index 7dfbafec33..c50229f42c 100644 --- a/packages/medusa/src/api/store/carts/route.ts +++ b/packages/medusa/src/api/store/carts/route.ts @@ -11,7 +11,7 @@ import { import { refetchCart } from "./helpers" export const POST = async ( - req: AuthenticatedMedusaRequest, + req: AuthenticatedMedusaRequest, res: MedusaResponse ) => { const workflowInput = { @@ -20,7 +20,7 @@ export const POST = async ( } const { result } = await createCartWorkflow(req.scope).run({ - input: workflowInput, + input: workflowInput as CreateCartWorkflowInputDTO, }) const cart = await refetchCart(