@infrab4a/connect 3.14.0-beta.1 → 3.14.0-beta.2
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 +7 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/helpers/index.d.ts +1 -1
- package/esm2015/domain/catalog/helpers/index.js +2 -2
- package/esm2015/domain/catalog/helpers/round-product-price.helper.js +15 -0
- package/esm2015/domain/users/models/user.js +2 -2
- package/esm2015/infra/elasticsearch/indexes/products-index.js +8 -3
- package/fesm2015/infrab4a-connect.js +7 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
- package/esm2015/domain/catalog/helpers/RoundProdutcPriceHelper.js +0 -15
- /package/domain/catalog/helpers/{RoundProdutcPriceHelper.d.ts → round-product-price.helper.d.ts} +0 -0
|
@@ -1522,7 +1522,7 @@
|
|
|
1522
1522
|
var instance = _super.toInstance.call(this, data);
|
|
1523
1523
|
if (!lodash.isNil(data.firstName))
|
|
1524
1524
|
instance.displayName = "" + data.firstName + (!lodash.isNil(data.lastName) ? " " + data.lastName : '');
|
|
1525
|
-
return;
|
|
1525
|
+
return instance;
|
|
1526
1526
|
};
|
|
1527
1527
|
User.prototype.toPlain = function () {
|
|
1528
1528
|
var plain = _super.prototype.toPlain.call(this);
|
|
@@ -2547,7 +2547,12 @@
|
|
|
2547
2547
|
})];
|
|
2548
2548
|
case 1:
|
|
2549
2549
|
search = _a.sent();
|
|
2550
|
-
search.hits = search.hits
|
|
2550
|
+
search.hits = search.hits
|
|
2551
|
+
.filter(function (e) { return e._source.name !== ''; })
|
|
2552
|
+
.map(function (hit) {
|
|
2553
|
+
RoundProductPricesHelper.roundProductPrices(hit._source);
|
|
2554
|
+
return hit;
|
|
2555
|
+
});
|
|
2551
2556
|
return [2 /*return*/, search];
|
|
2552
2557
|
}
|
|
2553
2558
|
});
|