diff --git a/.changeset/nasty-tigers-cross.md b/.changeset/nasty-tigers-cross.md new file mode 100644 index 0000000000000..18c478bc87845 --- /dev/null +++ b/.changeset/nasty-tigers-cross.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +fix(medusa): remove request body type argument from cancel order transfer routes diff --git a/packages/medusa/src/api/admin/orders/[id]/transfer/cancel/route.ts b/packages/medusa/src/api/admin/orders/[id]/transfer/cancel/route.ts index 0004a2b96b47e..b9235a7b566b7 100644 --- a/packages/medusa/src/api/admin/orders/[id]/transfer/cancel/route.ts +++ b/packages/medusa/src/api/admin/orders/[id]/transfer/cancel/route.ts @@ -4,11 +4,10 @@ import { MedusaResponse, } from "@medusajs/framework/http" import { AdminOrder, HttpTypes } from "@medusajs/framework/types" -import { AdminCancelOrderTransferRequestType } from "../../../validators" import { ContainerRegistrationKeys } from "@medusajs/framework/utils" export const POST = async ( - req: AuthenticatedMedusaRequest, + req: AuthenticatedMedusaRequest, res: MedusaResponse ) => { const query = req.scope.resolve(ContainerRegistrationKeys.QUERY) diff --git a/packages/medusa/src/api/store/orders/[id]/transfer/cancel/route.ts b/packages/medusa/src/api/store/orders/[id]/transfer/cancel/route.ts index 4c24b54c52ad1..54d05f78a947e 100644 --- a/packages/medusa/src/api/store/orders/[id]/transfer/cancel/route.ts +++ b/packages/medusa/src/api/store/orders/[id]/transfer/cancel/route.ts @@ -7,10 +7,9 @@ import { MedusaResponse, } from "@medusajs/framework/http" import { HttpTypes } from "@medusajs/framework/types" -import { StoreCancelOrderTransferRequestType } from "../../../validators" export const POST = async ( - req: AuthenticatedMedusaRequest, + req: AuthenticatedMedusaRequest, res: MedusaResponse ) => { const orderId = req.params.id