fix(medusa): allow filtering collections by handle (#2482)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa): allow filtering collections by handle
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { IsInt, IsOptional, ValidateNested } from "class-validator"
|
import { IsArray, IsInt, IsOptional, ValidateNested } from "class-validator"
|
||||||
|
|
||||||
import { DateComparisonOperator } from "../../../../types/common"
|
import { DateComparisonOperator } from "../../../../types/common"
|
||||||
import ProductCollectionService from "../../../../services/product-collection"
|
import ProductCollectionService from "../../../../services/product-collection"
|
||||||
@@ -120,6 +120,10 @@ export default async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class StoreGetCollectionsParams {
|
export class StoreGetCollectionsParams {
|
||||||
|
@IsOptional()
|
||||||
|
@IsArray()
|
||||||
|
handle?: string[]
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Type(() => Number)
|
@Type(() => Number)
|
||||||
|
|||||||
Reference in New Issue
Block a user