Skip to content

Commit

Permalink
Fix/product variants filter (#10808)
Browse files Browse the repository at this point in the history
Fixes: FRMW-2854
  • Loading branch information
thetutlage authored Jan 3, 2025
1 parent ecc09fd commit 988931a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-comics-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

Fix/product variants filter
4 changes: 3 additions & 1 deletion packages/medusa/src/api/admin/products/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export const AdminGetProductVariantsParams = createFindParams({
.merge(applyAndAndOrOperators(AdminGetProductVariantsParamsFields))

export const AdminGetProductsParamsDirectFields = z.object({
variants: AdminGetProductVariantsParams.optional(),
variants: AdminGetProductVariantsParamsFields.merge(
applyAndAndOrOperators(AdminGetProductVariantsParamsFields)
).optional(),
status: statusEnum.array().optional(),
})

Expand Down

0 comments on commit 988931a

Please sign in to comment.