fix(medusa): use correct request and response types for batch location levels route (#11055)

Use HTTP types for request / response types of the new batch location levels route
This commit is contained in:
Shahed Nasser
2025-01-20 17:03:07 +00:00
committed by GitHub
parent 24a952a83a
commit 45b47bf813
4 changed files with 30 additions and 3 deletions
@@ -1,10 +1,10 @@
import { batchInventoryItemLevelsWorkflow } from "@medusajs/core-flows"
import { MedusaRequest, MedusaResponse } from "@medusajs/framework"
import { AdminBatchInventoryItemLevelsType } from "../../validators"
import { HttpTypes } from "@medusajs/types"
export const POST = async (
req: MedusaRequest<AdminBatchInventoryItemLevelsType>,
res: MedusaResponse
req: MedusaRequest<HttpTypes.AdminBatchInventoryItemsLocationLevels>,
res: MedusaResponse<HttpTypes.AdminBatchInventoryItemsLocationLevelsResponse>
) => {
const body = req.validatedBody