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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user