@infrab4a/connect 3.2.7 → 3.2.8

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.
@@ -3878,12 +3878,13 @@
3878
3878
  });
3879
3879
  };
3880
3880
  CategoryHasuraGraphQLRepository.prototype.mountCategory = function (category, options) {
3881
+ var _a;
3881
3882
  return __awaiter(this, void 0, void 0, function () {
3882
3883
  var products, productsData;
3883
3884
  return __generator(this, function (_c) {
3884
3885
  switch (_c.label) {
3885
3886
  case 0:
3886
- if (!(category === null || category === void 0 ? void 0 : category.products.length))
3887
+ if (!((_a = category === null || category === void 0 ? void 0 : category.products) === null || _a === void 0 ? void 0 : _a.length))
3887
3888
  return [2 /*return*/, []];
3888
3889
  products = [];
3889
3890
  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: [