fix(medusa): allow filtering collections by handle (#2482)
This commit is contained in:
5
.changeset/polite-emus-explain.md
Normal file
5
.changeset/polite-emus-explain.md
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user