@infrab4a/connect 4.10.0-beta.0 → 4.10.0-beta.2
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
|
@@ -4220,7 +4220,7 @@ const withHasuraGraphQL = (MixinBase) => {
|
|
|
4220
4220
|
const response = await axios__default["default"](request);
|
|
4221
4221
|
if (!lodash.isNil(response.data.errors)) {
|
|
4222
4222
|
this.logger.error({ req: request, res: response.data.errors });
|
|
4223
|
-
throw new Error(response.data.errors);
|
|
4223
|
+
throw new Error(JSON.stringify(response.data.errors));
|
|
4224
4224
|
}
|
|
4225
4225
|
this.logger.log({ req: request, res: response.data });
|
|
4226
4226
|
return response.data.data;
|
|
@@ -6101,7 +6101,11 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6101
6101
|
return data;
|
|
6102
6102
|
}
|
|
6103
6103
|
async findBfluOrGlamgirlWishlists(params, shops) {
|
|
6104
|
-
|
|
6104
|
+
var _a;
|
|
6105
|
+
return this.find(Object.assign(Object.assign({}, params), { filters: Object.assign(Object.assign({}, params.filters), { published: true, shops: { operator: exports.Where.LIKE, value: shops }, personType: (_a = params.filters.personType) !== null && _a !== void 0 ? _a : {
|
|
6106
|
+
operator: exports.Where.IN,
|
|
6107
|
+
value: [exports.PersonTypes.BFLU, exports.PersonTypes.GLAMGIRL],
|
|
6108
|
+
} }), orderBy: Object.assign({ personHasPhoto: 'desc' }, lodash.omit(params.orderBy, ['personHasPhoto'])) }));
|
|
6105
6109
|
}
|
|
6106
6110
|
getCategoriesForHome(categoryIds, limit, gender) {
|
|
6107
6111
|
return;
|
package/index.esm.js
CHANGED
|
@@ -4214,7 +4214,7 @@ const withHasuraGraphQL = (MixinBase) => {
|
|
|
4214
4214
|
const response = await axios(request);
|
|
4215
4215
|
if (!isNil(response.data.errors)) {
|
|
4216
4216
|
this.logger.error({ req: request, res: response.data.errors });
|
|
4217
|
-
throw new Error(response.data.errors);
|
|
4217
|
+
throw new Error(JSON.stringify(response.data.errors));
|
|
4218
4218
|
}
|
|
4219
4219
|
this.logger.log({ req: request, res: response.data });
|
|
4220
4220
|
return response.data.data;
|
|
@@ -6095,7 +6095,11 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6095
6095
|
return data;
|
|
6096
6096
|
}
|
|
6097
6097
|
async findBfluOrGlamgirlWishlists(params, shops) {
|
|
6098
|
-
|
|
6098
|
+
var _a;
|
|
6099
|
+
return this.find(Object.assign(Object.assign({}, params), { filters: Object.assign(Object.assign({}, params.filters), { published: true, shops: { operator: Where.LIKE, value: shops }, personType: (_a = params.filters.personType) !== null && _a !== void 0 ? _a : {
|
|
6100
|
+
operator: Where.IN,
|
|
6101
|
+
value: [PersonTypes.BFLU, PersonTypes.GLAMGIRL],
|
|
6102
|
+
} }), orderBy: Object.assign({ personHasPhoto: 'desc' }, omit(params.orderBy, ['personHasPhoto'])) }));
|
|
6099
6103
|
}
|
|
6100
6104
|
getCategoriesForHome(categoryIds, limit, gender) {
|
|
6101
6105
|
return;
|