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

This commit is contained in:
Sebastian Rindom
2022-10-31 09:51:15 +01:00
committed by GitHub
parent a9acb48fc6
commit 58c7ffdc6e
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): allow filtering collections by handle

View File

@@ -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)