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

This commit is contained in:
Sebastian Rindom authored and GitHub committed 2022-10-31 08:51:15 +00:00
1 parent a9acb48fc6
commit 58c7ffdc6e
2 files changed
+10 -1

No files matched your search

+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 ProductCollectionService from "../../../../services/product-collection"
@@ -120,6 +120,10 @@ export default async (req, res) => {
}
export class StoreGetCollectionsParams {
@IsOptional()
@IsArray()
handle?: string[]
@IsOptional()
@IsInt()
@Type(() => Number)