fix(medusa): use correct request / response types (#11170)
This commit is contained in:
5
.changeset/old-cheetahs-complain.md
Normal file
5
.changeset/old-cheetahs-complain.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix(medusa): use correct request / response types
|
||||
@@ -1,14 +1,13 @@
|
||||
import { StoreProductTagListResponse } from "@medusajs/framework/types"
|
||||
import { HttpTypes } from "@medusajs/framework/types"
|
||||
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
||||
import {
|
||||
AuthenticatedMedusaRequest,
|
||||
MedusaResponse,
|
||||
} from "@medusajs/framework/http"
|
||||
import { StoreProductTagsParamsType } from "./validators"
|
||||
|
||||
export const GET = async (
|
||||
req: AuthenticatedMedusaRequest<StoreProductTagsParamsType>,
|
||||
res: MedusaResponse<StoreProductTagListResponse>
|
||||
req: AuthenticatedMedusaRequest<HttpTypes.StoreProductTagListParams>,
|
||||
res: MedusaResponse<HttpTypes.StoreProductTagListResponse>
|
||||
) => {
|
||||
const query = req.scope.resolve(ContainerRegistrationKeys.QUERY)
|
||||
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { StoreProductTypeListResponse } from "@medusajs/framework/types"
|
||||
import { HttpTypes } from "@medusajs/framework/types"
|
||||
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
||||
import {
|
||||
AuthenticatedMedusaRequest,
|
||||
MedusaResponse,
|
||||
} from "@medusajs/framework/http"
|
||||
import { StoreProductTypesParamsType } from "./validators"
|
||||
|
||||
export const GET = async (
|
||||
req: AuthenticatedMedusaRequest<StoreProductTypesParamsType>,
|
||||
res: MedusaResponse<StoreProductTypeListResponse>
|
||||
req: AuthenticatedMedusaRequest<HttpTypes.StoreProductTypeListParams>,
|
||||
res: MedusaResponse<HttpTypes.StoreProductTypeListResponse>
|
||||
) => {
|
||||
const query = req.scope.resolve(ContainerRegistrationKeys.QUERY)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user