@bytebrand/export-cars 1.14.2 → 1.14.4
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/dist/services/car.service.js +1 -1
- package/dist/services/car.service.js.map +1 -1
- package/dist/transformers/fb.transformer.js +0 -3
- package/dist/transformers/fb.transformer.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/services/car.service.ts +1 -1
- package/src/transformers/fb.transformer.ts +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/export-cars",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "bytebrand",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=14.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a8c5cfd06f692356f979f1b7ea35d931633cab43"
|
|
64
64
|
}
|
|
@@ -43,7 +43,7 @@ export class CarService {
|
|
|
43
43
|
try {
|
|
44
44
|
owner = await this.bottleneck.schedule(() => this.requestService.upaRequest.getDealerProfile(ownerId));
|
|
45
45
|
} catch (e) {
|
|
46
|
-
console.log(e.message);
|
|
46
|
+
console.log(e.message, ownerId);
|
|
47
47
|
throw e;
|
|
48
48
|
} finally {
|
|
49
49
|
await this.cacheManager.set(ownerId, owner);
|
|
@@ -261,7 +261,7 @@ export class FbTransformer {
|
|
|
261
261
|
car: DataSchemes.Car,
|
|
262
262
|
owner: unknown,
|
|
263
263
|
): Promise<{
|
|
264
|
-
address: { city: string;
|
|
264
|
+
address: { city: string; region: string; country: string; postal_code: string };
|
|
265
265
|
latitude: number;
|
|
266
266
|
longitude: number;
|
|
267
267
|
}> {
|
|
@@ -271,11 +271,9 @@ export class FbTransformer {
|
|
|
271
271
|
}
|
|
272
272
|
let city: string = get(owner, `${addressPath}.city`, '');
|
|
273
273
|
let zip: string = get(owner, `${addressPath}.zip`, '');
|
|
274
|
-
let addr1 = get(owner, `${addressPath}.street`, '');
|
|
275
274
|
let locationEntity = await this.getLocationByInfo({ city, zip: toSafeInteger(zip) });
|
|
276
275
|
|
|
277
276
|
if (this.isEmptyLocation(locationEntity)) {
|
|
278
|
-
addr1 = DEFAULT_ADDR1;
|
|
279
277
|
city = DEFAULT_CITY;
|
|
280
278
|
zip = DEFAULT_ZIP;
|
|
281
279
|
locationEntity = await this.getLocationByInfo({ city, zip: toSafeInteger(zip) });
|
|
@@ -287,7 +285,6 @@ export class FbTransformer {
|
|
|
287
285
|
...coords,
|
|
288
286
|
address: {
|
|
289
287
|
city,
|
|
290
|
-
addr1,
|
|
291
288
|
region: get(locationEntity, 'Place Name', ''),
|
|
292
289
|
country: country || 'Deutschland',
|
|
293
290
|
postal_code: zip,
|