@infrab4a/connect 4.16.1-beta.3 → 4.16.1-beta.4
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 +6 -2
- package/index.esm.js +6 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -4934,7 +4934,6 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4934
4934
|
categories.push(...(await this.find({
|
|
4935
4935
|
filters: {
|
|
4936
4936
|
id: { operator: exports.Where.IN, value: categoriesHasura.filter(Boolean) },
|
|
4937
|
-
// shops: { operator: Where.IN, value: [shop] },
|
|
4938
4937
|
published: true,
|
|
4939
4938
|
},
|
|
4940
4939
|
}).then(({ data }) => data)));
|
|
@@ -4979,7 +4978,12 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4979
4978
|
'shoppingCount',
|
|
4980
4979
|
'gender',
|
|
4981
4980
|
'createdAt',
|
|
4982
|
-
] }, ((options === null || options === void 0 ? void 0 : options.limit) ? { limits: { limit: options === null || options === void 0 ? void 0 : options.limit } } : {})), { options: { enableCount: false }
|
|
4981
|
+
] }, ((options === null || options === void 0 ? void 0 : options.limit) ? { limits: { limit: options === null || options === void 0 ? void 0 : options.limit } } : {})), { options: { enableCount: false }, orderBy: {
|
|
4982
|
+
shoppingCount: 'desc',
|
|
4983
|
+
rate: 'desc',
|
|
4984
|
+
stock: 'desc',
|
|
4985
|
+
name: 'asc',
|
|
4986
|
+
} }));
|
|
4983
4987
|
products.push(...productsData.sort((a, b) => mostRelevants.indexOf(a.id) - mostRelevants.indexOf(b.id)));
|
|
4984
4988
|
return products;
|
|
4985
4989
|
}
|
package/index.esm.js
CHANGED
|
@@ -4928,7 +4928,6 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4928
4928
|
categories.push(...(await this.find({
|
|
4929
4929
|
filters: {
|
|
4930
4930
|
id: { operator: Where.IN, value: categoriesHasura.filter(Boolean) },
|
|
4931
|
-
// shops: { operator: Where.IN, value: [shop] },
|
|
4932
4931
|
published: true,
|
|
4933
4932
|
},
|
|
4934
4933
|
}).then(({ data }) => data)));
|
|
@@ -4973,7 +4972,12 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4973
4972
|
'shoppingCount',
|
|
4974
4973
|
'gender',
|
|
4975
4974
|
'createdAt',
|
|
4976
|
-
] }, ((options === null || options === void 0 ? void 0 : options.limit) ? { limits: { limit: options === null || options === void 0 ? void 0 : options.limit } } : {})), { options: { enableCount: false }
|
|
4975
|
+
] }, ((options === null || options === void 0 ? void 0 : options.limit) ? { limits: { limit: options === null || options === void 0 ? void 0 : options.limit } } : {})), { options: { enableCount: false }, orderBy: {
|
|
4976
|
+
shoppingCount: 'desc',
|
|
4977
|
+
rate: 'desc',
|
|
4978
|
+
stock: 'desc',
|
|
4979
|
+
name: 'asc',
|
|
4980
|
+
} }));
|
|
4977
4981
|
products.push(...productsData.sort((a, b) => mostRelevants.indexOf(a.id) - mostRelevants.indexOf(b.id)));
|
|
4978
4982
|
return products;
|
|
4979
4983
|
}
|