b2m-utils 0.0.187 → 0.0.188
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/build/index.esm.js +1 -1
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.gz +0 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -7148,7 +7148,7 @@ var getLaneFromRatecard = function (cte) {
|
|
|
7148
7148
|
// Para isso, precisamos encontrar a UF da origem e sua ratecardRegion
|
|
7149
7149
|
var originUf_1 = (_f = (_e = cte.cityOrigin) === null || _e === void 0 ? void 0 : _e.state) === null || _f === void 0 ? void 0 : _f.uf;
|
|
7150
7150
|
// Encontrar a ratecardRegion da cidade de origem
|
|
7151
|
-
var originRatecardRegionId_1 = (_h = (_g = ratecard === null || ratecard === void 0 ? void 0 : ratecard.RatecardRegionCity) === null || _g === void 0 ? void 0 : _g.find(function (regionCity) {
|
|
7151
|
+
var originRatecardRegionId_1 = (_h = (_g = ratecard === null || ratecard === void 0 ? void 0 : ratecard.RatecardRegionCity) === null || _g === void 0 ? void 0 : _g.find(function (regionCity) { return regionCity.cityId === cityOriginId; })) === null || _h === void 0 ? void 0 : _h.ratecardRegionId;
|
|
7152
7152
|
if (originUf_1) {
|
|
7153
7153
|
var reverseLane = ratecard.RatecardLane.find(function (i) {
|
|
7154
7154
|
return i.cityOriginId === (cityDestination === null || cityDestination === void 0 ? void 0 : cityDestination.id) && i.ufDestination === originUf_1 && i.ratecardRegionId === originRatecardRegionId_1;
|
package/build/index.esm.js.gz
CHANGED
|
Binary file
|