fix(medusa): allow filtering collections by handle (#2482)

This commit is contained in:
Sebastian Rindom
2022-10-31 08:51:15 +00:00
committed by GitHub
parent a9acb48fc6
commit 58c7ffdc6e
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -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)