@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.
- package/bundles/infrab4a-connect.umd.js +4 -3
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/domain/catalog/repositories/category.repository.js +1 -1
- package/esm2015/lib/domain/shop-settings/models/home.js +1 -1
- package/esm2015/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +3 -3
- package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +2 -2
- package/fesm2015/infrab4a-connect.js +3 -3
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/lib/domain/catalog/repositories/category.repository.d.ts +1 -1
- package/lib/domain/shop-settings/models/home.d.ts +1 -1
- package/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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 = '
|
|
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(
|
|
1718
|
+
.limit(limit)
|
|
1718
1719
|
.get()];
|
|
1719
1720
|
case 4:
|
|
1720
1721
|
productSnap = _b.sent();
|