@infrab4a/connect 0.9.5-beta.0 → 0.9.5
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 +3 -2
- 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/fesm2015/infrab4a-connect.js +2 -2
- 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
|
@@ -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();
|