@bytebrand/export-cars 1.21.66 → 1.21.68
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
|
@@ -30,6 +30,7 @@ export class GoogleTransformer {
|
|
|
30
30
|
if (!this.checkCarValidity(car, images))
|
|
31
31
|
return null
|
|
32
32
|
|
|
33
|
+
console.log(car._id, images);
|
|
33
34
|
const carId = toString(get(car, '_id', ''));
|
|
34
35
|
const transformedImages = await this.imageService.getExtIntDefaultImages(
|
|
35
36
|
car,
|
|
@@ -374,7 +375,7 @@ export class GoogleTransformer {
|
|
|
374
375
|
|
|
375
376
|
const monthsDifference = (fieldDate - conditionDate) / (1000 * 60 * 60 * 24 * 30);
|
|
376
377
|
|
|
377
|
-
return Math.abs(monthsDifference) <= month;
|
|
378
|
+
return Math.round(Math.abs(monthsDifference)) <= month;
|
|
378
379
|
}
|
|
379
380
|
|
|
380
381
|
private getMileage(car: DataSchemes.Car): number {
|