@bytebrand/export-cars 1.26.14 → 1.26.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.26.14",
3
+ "version": "1.26.15",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -68,7 +68,8 @@ export class FacebookShopTransformer {
68
68
  return [];
69
69
  }
70
70
 
71
- const vehicleId = toString(get(car, 'metaData.vehicleId', car._id));
71
+ // ADV-200: AIA/AMA now wants the long auto.de ID (VDP URL id), not the short metaData.vehicleId code
72
+ const vehicleId = toString(car._id);
72
73
  const make = toString(get(car, 'mainData.make', ''));
73
74
  const model = toString(get(car, 'mainData.model', ''));
74
75
  const price = this.getPriceValue(car);
@@ -95,7 +95,8 @@ export class FbTransformer {
95
95
  ...dealerInfo,
96
96
  user_id: ownerId,
97
97
  custom_label_4: await this.getMetaPushPriority(ownerId),
98
- vehicle_id: get(car, 'metaData.vehicleId', autodeId),
98
+ // ADV-200: AIA/AMA now wants the long auto.de ID (VDP URL id), not the short metaData.vehicleId code
99
+ vehicle_id: autodeId,
99
100
  stock_number: autodeId,
100
101
  availability: this.mapAvailability(car),
101
102
  title: this.getTitle(car),