@infrab4a/connect 5.1.1-beta.0 → 5.1.1-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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -7624,7 +7624,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
7624
7624
|
}
|
|
7625
7625
|
async findCatalog(params, mainGender, options) {
|
|
7626
7626
|
// eslint-disable-next-line no-console
|
|
7627
|
-
console.log(JSON.stringify({
|
|
7627
|
+
console.log('findCatalog', JSON.stringify({
|
|
7628
7628
|
...params,
|
|
7629
7629
|
filters: { ...params.filters, published: true },
|
|
7630
7630
|
orderBy: {
|
|
@@ -7637,9 +7637,9 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
7637
7637
|
...params,
|
|
7638
7638
|
filters: { ...params.filters, published: true },
|
|
7639
7639
|
orderBy: {
|
|
7640
|
+
hasStock: 'desc',
|
|
7640
7641
|
...(!mainGender ? {} : { intGender: mainGender === 'female' ? 'desc' : 'asc' }),
|
|
7641
7642
|
...lodash.omit(params.orderBy, ['hasStock', 'intGender']),
|
|
7642
|
-
hasStock: 'desc',
|
|
7643
7643
|
},
|
|
7644
7644
|
}, options);
|
|
7645
7645
|
return result;
|
package/index.esm.js
CHANGED
|
@@ -7599,7 +7599,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
7599
7599
|
}
|
|
7600
7600
|
async findCatalog(params, mainGender, options) {
|
|
7601
7601
|
// eslint-disable-next-line no-console
|
|
7602
|
-
console.log(JSON.stringify({
|
|
7602
|
+
console.log('findCatalog', JSON.stringify({
|
|
7603
7603
|
...params,
|
|
7604
7604
|
filters: { ...params.filters, published: true },
|
|
7605
7605
|
orderBy: {
|
|
@@ -7612,9 +7612,9 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
7612
7612
|
...params,
|
|
7613
7613
|
filters: { ...params.filters, published: true },
|
|
7614
7614
|
orderBy: {
|
|
7615
|
+
hasStock: 'desc',
|
|
7615
7616
|
...(!mainGender ? {} : { intGender: mainGender === 'female' ? 'desc' : 'asc' }),
|
|
7616
7617
|
...omit(params.orderBy, ['hasStock', 'intGender']),
|
|
7617
|
-
hasStock: 'desc',
|
|
7618
7618
|
},
|
|
7619
7619
|
}, options);
|
|
7620
7620
|
return result;
|