@infrab4a/connect 4.25.0-beta.11 → 4.25.0-beta.12

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
@@ -5745,15 +5745,20 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5745
5745
  const products = [];
5746
5746
  const mostRelevantsIds = category.getMostRelevantByShop(shop);
5747
5747
  if (mostRelevantsIds === null || mostRelevantsIds === void 0 ? void 0 : mostRelevantsIds.length) {
5748
- const { data: mostRelevants } = await this.productRepository.findCatalog(Object.assign(Object.assign({ filters: Object.assign({ id: {
5748
+ const { data: mostRelevants } = await this.productRepository.findCatalog({
5749
+ filters: Object.assign({ id: {
5749
5750
  operator: exports.Where.IN,
5750
5751
  value: mostRelevantsIds,
5751
- }, published: true }, (options.hasStock ? { stock: { quantity: { operator: exports.Where.GT, value: 0 } } } : {})) }, (options.limit ? { limits: { limit: options.limit } } : {})), { fields, options: { enableCount: false }, orderBy: {
5752
+ }, published: true }, (options.hasStock ? { stock: { quantity: { operator: exports.Where.GT, value: 0 } } } : {})),
5753
+ fields,
5754
+ options: { enableCount: false },
5755
+ orderBy: {
5752
5756
  stock: 'desc',
5753
5757
  shoppingCount: 'desc',
5754
5758
  rate: 'desc',
5755
5759
  name: 'asc',
5756
- } }), shop === exports.Shops.MENSMARKET ? 'male' : 'female', optionsCache);
5760
+ },
5761
+ }, shop === exports.Shops.MENSMARKET ? 'male' : 'female', optionsCache);
5757
5762
  if (mostRelevants.length >= mostRelevantsIds.length)
5758
5763
  return this.reorganizeMostRelevantsProducts(mostRelevants, mostRelevantsIds, options.limit);
5759
5764
  products.push(...mostRelevants);
package/index.esm.js CHANGED
@@ -5739,15 +5739,20 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5739
5739
  const products = [];
5740
5740
  const mostRelevantsIds = category.getMostRelevantByShop(shop);
5741
5741
  if (mostRelevantsIds === null || mostRelevantsIds === void 0 ? void 0 : mostRelevantsIds.length) {
5742
- const { data: mostRelevants } = await this.productRepository.findCatalog(Object.assign(Object.assign({ filters: Object.assign({ id: {
5742
+ const { data: mostRelevants } = await this.productRepository.findCatalog({
5743
+ filters: Object.assign({ id: {
5743
5744
  operator: Where.IN,
5744
5745
  value: mostRelevantsIds,
5745
- }, published: true }, (options.hasStock ? { stock: { quantity: { operator: Where.GT, value: 0 } } } : {})) }, (options.limit ? { limits: { limit: options.limit } } : {})), { fields, options: { enableCount: false }, orderBy: {
5746
+ }, published: true }, (options.hasStock ? { stock: { quantity: { operator: Where.GT, value: 0 } } } : {})),
5747
+ fields,
5748
+ options: { enableCount: false },
5749
+ orderBy: {
5746
5750
  stock: 'desc',
5747
5751
  shoppingCount: 'desc',
5748
5752
  rate: 'desc',
5749
5753
  name: 'asc',
5750
- } }), shop === Shops.MENSMARKET ? 'male' : 'female', optionsCache);
5754
+ },
5755
+ }, shop === Shops.MENSMARKET ? 'male' : 'female', optionsCache);
5751
5756
  if (mostRelevants.length >= mostRelevantsIds.length)
5752
5757
  return this.reorganizeMostRelevantsProducts(mostRelevants, mostRelevantsIds, options.limit);
5753
5758
  products.push(...mostRelevants);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.25.0-beta.11",
3
+ "version": "4.25.0-beta.12",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },