From d2acdb9f58e26d1b88dfc8bc5f800aa00d4cab43 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 27 Aug 2024 17:30:52 +0300 Subject: [PATCH] fix(medusa): use correct request type for create cart API route --- 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 7dfbafec3385a..c50229f42c279 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(