From c3f788345f36b6a6c18c251c9f4b475b7e36648d Mon Sep 17 00:00:00 2001 From: Joseph Nelson Date: Tue, 28 Apr 2026 23:24:44 -0700 Subject: [PATCH] added file extension --- createCollectionsFromCSVs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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