@infrab4a/connect 4.0.0-beta.47 → 4.0.0-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/catalog/repositories/product.repository.d.ts +1 -1
- package/esm2020/domain/catalog/repositories/product.repository.mjs +1 -1
- package/esm2020/infra/elasticsearch/indexes/products-index.mjs +2 -2
- package/esm2020/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.mjs +2 -2
- package/fesm2015/infrab4a-connect.mjs +2 -2
- package/fesm2015/infrab4a-connect.mjs.map +1 -1
- package/fesm2020/infrab4a-connect.mjs +2 -2
- package/fesm2020/infrab4a-connect.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1683,7 +1683,7 @@ class ProductsIndex {
|
|
|
1683
1683
|
return Product.toInstance(data);
|
|
1684
1684
|
}
|
|
1685
1685
|
async search(searchTerm, total, shop) {
|
|
1686
|
-
const size = total
|
|
1686
|
+
const size = total || 9;
|
|
1687
1687
|
const fields = [
|
|
1688
1688
|
'EAN',
|
|
1689
1689
|
'brand',
|
|
@@ -4283,7 +4283,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4283
4283
|
filters: { ...params.filters, published: true },
|
|
4284
4284
|
orderBy: {
|
|
4285
4285
|
hasStock: 'desc',
|
|
4286
|
-
intGender: mainGender === 'female' ? 'desc' : 'asc',
|
|
4286
|
+
...(!mainGender ? {} : { intGender: mainGender === 'female' ? 'desc' : 'asc' }),
|
|
4287
4287
|
...omit(params.orderBy, ['hasStock', 'intGender']),
|
|
4288
4288
|
},
|
|
4289
4289
|
});
|