@bytebrand/export-cars 1.26.3 → 1.26.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/package.json
CHANGED
|
@@ -85,6 +85,8 @@ export class ImagesService {
|
|
|
85
85
|
'https://images.auto.de/carimage/noimage/pFyfBsqBHEso/large-cached.jpeg',
|
|
86
86
|
];
|
|
87
87
|
|
|
88
|
+
private hasLoggedMarketingImageDebug = false;
|
|
89
|
+
|
|
88
90
|
constructor(private readonly configService: ConfigService, private readonly userService: UserService) { }
|
|
89
91
|
|
|
90
92
|
async getImages(car: DataSchemes.Car, images: ImboImageResponseInterface[], imageType: ImageType, ignoreDefImages: boolean): Promise<Array<string>> {
|
|
@@ -193,6 +195,17 @@ export class ImagesService {
|
|
|
193
195
|
|
|
194
196
|
const marketingImageConfigs = config.marketingImages.map(i => ({ marketingImageCodes: i.imageCodes }));
|
|
195
197
|
|
|
198
|
+
if (this.configService.config.exportType === ExportType.FB && !this.hasLoggedMarketingImageDebug) {
|
|
199
|
+
this.hasLoggedMarketingImageDebug = true;
|
|
200
|
+
console.log(
|
|
201
|
+
'getMarketingImages debug —',
|
|
202
|
+
'config.id:', config.id,
|
|
203
|
+
'config.channelCode:', config.channelCode,
|
|
204
|
+
'requested imageCodes per slot:', JSON.stringify(marketingImageConfigs.map(c => c.marketingImageCodes)),
|
|
205
|
+
'photo codes available on this car:', JSON.stringify(Object.keys(transformedImages)),
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
196
209
|
const imageWithUrls: Partial<ImboImageResponseInterface & { url: string }>[] = [];
|
|
197
210
|
for (let i = 0; i < marketingImageConfigs.length; i++) {
|
|
198
211
|
const marketingImage = marketingImageConfigs[i];
|