fix: storefront product filtering (#1189)
* fix: allow multiple ids in list + expand, fields param * fix: add filtering by title * fix: adds integration test * fix: adds integration test of product variant filtering * fix: integration tests * fix: unit tests * fix: refactor query param parsing
This commit is contained in:
1 parent
4be991c156
commit
e3655b53f7
12 files changed
+324
-28
No files matched your search
@@ -16,6 +16,7 @@ import {
|
||||
export type ProductFactoryData = {
|
||||
id?: string
|
||||
is_giftcard?: boolean
|
||||
status?: string
|
||||
title?: string
|
||||
type?: string
|
||||
options?: { id: string; title: string }[]
|
||||
@@ -54,6 +55,7 @@ export const simpleProductFactory = async (
|
||||
const toSave = manager.create(Product, {
|
||||
id: prodId,
|
||||
type_id: typeId,
|
||||
status: data.status,
|
||||
title: data.title || faker.commerce.productName(),
|
||||
is_giftcard: data.is_giftcard || false,
|
||||
discountable: !data.is_giftcard,
|
||||
|
||||
Reference in new issue
Block a user