diff --git a/createCollectionsFromCSVs.js b/createCollectionsFromCSVs.js index 18e6420..e068b71 100644 --- a/createCollectionsFromCSVs.js +++ b/createCollectionsFromCSVs.js @@ -210,7 +210,7 @@ const createCollectionFromCSV = async (name, csvFilePath) => { // Await each download before starting the next // const { destination } = await downloadTcgImage(productId, item.imageUrl); - item.itemIds.forEach((id) => itemIdImageLocations.push({ itemId: id, imageDest: path.join(imagesDir, productId) })); + item.itemIds.forEach((id) => itemIdImageLocations.push({ itemId: id, imageDest: path.join(imagesDir, `${productId}.jpg`) })); } // After processing all collections, check the imagesDir