fix: added description function to the data so it can be properly fetched

This commit is contained in:
Leon Xu committed 2023-12-30 13:20:49 -08:00
1 parent a76e139dd7
commit cb6c450bc6
1 file changed
+1
+1
View File
@@ -72,6 +72,7 @@ export async function scrapeAmazonProduct(url: string) {
reviewsCount:100,
stars: 4.5,
isOutOfStock: outOfStock,
description,
lowestPrice: Number(currentPrice) || Number(originalPrice),
highestPrice: Number(originalPrice) || Number(currentPrice),
averagePrice: Number(currentPrice) || Number(originalPrice),