This commit is contained in:
@@ -210,7 +210,7 @@ const createCollectionFromCSV = async (name, csvFilePath) => {
|
|||||||
// Await each download before starting the next
|
// Await each download before starting the next
|
||||||
// const { destination } = await downloadTcgImage(productId, item.imageUrl);
|
// 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
|
// After processing all collections, check the imagesDir
|
||||||
|
|||||||
Reference in New Issue
Block a user