@bytebrand/export-cars 1.21.25 → 1.21.26

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.25",
3
+ "version": "1.21.26",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -17,7 +17,7 @@ export class GoogleExporter implements Exporter {
17
17
  private rulesService: RulesService,
18
18
  private loaderService: LoaderService,
19
19
  private moduleRef: ModuleRef,
20
- ) {}
20
+ ) { }
21
21
 
22
22
  async export(): Promise<void> {
23
23
  const [fileName] = this.configService.config.outputFiles;
@@ -34,7 +34,8 @@ export class GoogleExporter implements Exporter {
34
34
 
35
35
  for (const data of chunk.data) {
36
36
  const car = await googleTransformer.transform(data);
37
- await googleXmlBuilder.addItem(car);
37
+ if (data.images.length > 0)
38
+ await googleXmlBuilder.addItem(car);
38
39
  this.carService.counter.countCar(data.images);
39
40
  }
40
41
  });