@bytebrand/export-cars 1.21.76 → 1.21.77

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.21.76",
3
+ "version": "1.21.77",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -61,10 +61,13 @@ export class SantanderTransformer {
61
61
  for (const rule of rules) {
62
62
  const importFieldNumber = Number(rule.importField.match(/\d+/)[0]);
63
63
 
64
+ if (this.checkFieldsOnlyForNew(importFieldNumber) && !isNew) {
65
+ console.log(`${carData._id} - ${rule.importField} - ${importFieldNumber}`);
66
+ continue;
67
+ }
68
+
64
69
  if (isNew && this.checkFieldsOnlyForNew(importFieldNumber)) {
65
70
  console.log(`NEW - ${rule.importField} - ${importFieldNumber}`);
66
- } else {
67
- continue;
68
71
  }
69
72
 
70
73
  if (rule.custom === 'yes') {
@@ -102,7 +105,7 @@ export class SantanderTransformer {
102
105
  }
103
106
 
104
107
  private async checkFieldsOnlyForNew(importFieldNumber: number) {
105
- const fieldsOnlyForNewCar: any = [
108
+ const fieldsOnlyForNewCar = [
106
109
  336, 337, 338, 339, 313, 320, 405, 468, 469, 470, 471, 472, 473, 474, 475,
107
110
  513, 514, 515, 516, 517, 520, 521, 522, 523, 524, 525, 526, 527
108
111
  ];