@infrab4a/connect 3.2.6-beta.1 → 3.2.6-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/bundles/infrab4a-connect.umd.js +0 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +3 -4
- package/fesm2015/infrab4a-connect.js +1 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -3876,8 +3876,6 @@
|
|
|
3876
3876
|
return __generator(this, function (_c) {
|
|
3877
3877
|
switch (_c.label) {
|
|
3878
3878
|
case 0:
|
|
3879
|
-
if (!category.products)
|
|
3880
|
-
throw new RequiredArgumentError(['Category products is empty']);
|
|
3881
3879
|
products = [];
|
|
3882
3880
|
return [4 /*yield*/, this.productRepository.find(Object.assign({ filters: Object.assign({ id: { operator: exports.Where.IN, value: category.products }, published: true }, ((options === null || options === void 0 ? void 0 : options.hasStock) ? { stock: { quantity: { operator: exports.Where.GT, value: 0 } } } : {})), fields: [
|
|
3883
3881
|
'id',
|