fix(medusa): use correct request type for create cart API route (#8820)

This commit is contained in:
Shahed Nasser
2024-08-28 12:16:30 +03:00
committed by GitHub
parent afd6fdcdf6
commit 8f8e2f5a65

View File

@@ -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 = {
@@ -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(