Skip to content

Commit

Permalink
fix(medusa): use correct request type for create cart API route
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Aug 27, 2024
1 parent ac18b5d commit d2acdb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/medusa/src/api/store/carts/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { refetchCart } from "./helpers"

export const POST = async (
req: AuthenticatedMedusaRequest<CreateCartWorkflowInputDTO & AdditionalData>,
req: AuthenticatedMedusaRequest<HttpTypes.StoreCreateCart & AdditionalData>,
res: MedusaResponse<HttpTypes.StoreCartResponse>
) => {
const workflowInput = {
Expand All @@ -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(
Expand Down

0 comments on commit d2acdb9

Please sign in to comment.