@infrab4a/connect 0.16.7 → 0.16.9-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 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/repositories/category.repository.d.ts +4 -1
- package/esm2015/domain/catalog/repositories/category.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +4 -2
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +2 -2
- package/fesm2015/infrab4a-connect.js +4 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -2243,7 +2243,9 @@
|
|
|
2243
2243
|
productIds = chunks_1_1.value;
|
|
2244
2244
|
if ((options === null || options === void 0 ? void 0 : options.limit) && products.length >= (options === null || options === void 0 ? void 0 : options.limit))
|
|
2245
2245
|
return [3 /*break*/, 6];
|
|
2246
|
-
return [4 /*yield*/, this.collection('
|
|
2246
|
+
return [4 /*yield*/, this.collection('productsErpVitrine')
|
|
2247
|
+
.where(publishedField, '==', true)
|
|
2248
|
+
.where('id', 'in', productIds)];
|
|
2247
2249
|
case 3:
|
|
2248
2250
|
query = _b.sent();
|
|
2249
2251
|
if (options === null || options === void 0 ? void 0 : options.hasStock)
|
|
@@ -2284,7 +2286,7 @@
|
|
|
2284
2286
|
function ProductFirestoreRepository(firestore) {
|
|
2285
2287
|
var _this = _super.call(this) || this;
|
|
2286
2288
|
_this.firestore = firestore;
|
|
2287
|
-
_this.collectionName = '
|
|
2289
|
+
_this.collectionName = 'productsErpVitrine';
|
|
2288
2290
|
_this.model = Product;
|
|
2289
2291
|
return _this;
|
|
2290
2292
|
}
|