@infrab4a/connect 4.16.2-beta.0 → 4.16.2-beta.1

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/index.cjs.js CHANGED
@@ -4952,7 +4952,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4952
4952
  const mostRelevants = category.getMostRelevantByShop(shop);
4953
4953
  const mostRelevantProductsIds = [...new Set(mostRelevants.concat(category.products))];
4954
4954
  const products = [];
4955
- const { data: productsData } = await this.productRepository.find({
4955
+ const { data: productsData } = await this.productRepository.findCatalog({
4956
4956
  filters: {
4957
4957
  id: { operator: exports.Where.IN, value: mostRelevantProductsIds },
4958
4958
  published: true,
@@ -4991,7 +4991,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4991
4991
  stock: 'desc',
4992
4992
  name: 'asc',
4993
4993
  },
4994
- });
4994
+ }, shop === exports.Shops.MENSMARKET ? 'male' : 'female');
4995
4995
  const mostRelevantWithouyStock = productsData.filter((product) => mostRelevants.includes(product.id) && product.stock.quantity <= 0);
4996
4996
  const firstProducts = productsData
4997
4997
  .filter((product) => mostRelevants.includes(product.id) && product.stock.quantity > 0)
package/index.esm.js CHANGED
@@ -4946,7 +4946,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4946
4946
  const mostRelevants = category.getMostRelevantByShop(shop);
4947
4947
  const mostRelevantProductsIds = [...new Set(mostRelevants.concat(category.products))];
4948
4948
  const products = [];
4949
- const { data: productsData } = await this.productRepository.find({
4949
+ const { data: productsData } = await this.productRepository.findCatalog({
4950
4950
  filters: {
4951
4951
  id: { operator: Where.IN, value: mostRelevantProductsIds },
4952
4952
  published: true,
@@ -4985,7 +4985,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4985
4985
  stock: 'desc',
4986
4986
  name: 'asc',
4987
4987
  },
4988
- });
4988
+ }, shop === Shops.MENSMARKET ? 'male' : 'female');
4989
4989
  const mostRelevantWithouyStock = productsData.filter((product) => mostRelevants.includes(product.id) && product.stock.quantity <= 0);
4990
4990
  const firstProducts = productsData
4991
4991
  .filter((product) => mostRelevants.includes(product.id) && product.stock.quantity > 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.16.2-beta.0",
3
+ "version": "4.16.2-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },