@infrab4a/connect 0.9.5-beta.0 → 0.9.6-beta.0

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.
@@ -1641,7 +1641,7 @@
1641
1641
  var _this = _super.call(this) || this;
1642
1642
  _this.firestore = firestore;
1643
1643
  _this.parentRepository = parentRepository;
1644
- _this.collectionName = 'Payments';
1644
+ _this.collectionName = 'payments';
1645
1645
  _this.parentIdField = 'subscriptionId';
1646
1646
  _this.model = SubscriptionPayment;
1647
1647
  return _this;
@@ -1685,7 +1685,8 @@
1685
1685
  })
1686
1686
  .catch(function (error) { return error; });
1687
1687
  };
1688
- CategoryFirestoreRepository.prototype.getCategoriesForHome = function (categoryIds) {
1688
+ CategoryFirestoreRepository.prototype.getCategoriesForHome = function (categoryIds, limit) {
1689
+ if (limit === void 0) { limit = 4; }
1689
1690
  return __awaiter(this, void 0, void 0, function () {
1690
1691
  var categorySnap, categories, homeSections, categories_1, categories_1_1, category, publishedField, productSnap, products, e_1_1;
1691
1692
  var e_1, _a;
@@ -1714,7 +1715,7 @@
1714
1715
  .where('categories', 'array-contains', category.id)
1715
1716
  .where(publishedField, '==', true)
1716
1717
  .where('stock.quantity', '>', 1)
1717
- .limit(4)
1718
+ .limit(limit)
1718
1719
  .get()];
1719
1720
  case 4:
1720
1721
  productSnap = _b.sent();