From cb6c450bc669d589377c2c81f62ce192f1ecee97 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 30 Dec 2023 13:20:49 -0800 Subject: [PATCH] fix: added description function to the data so it can be properly fetched --- lib/scraper/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scraper/index.ts b/lib/scraper/index.ts index 65803ef..c88cfa8 100644 --- a/lib/scraper/index.ts +++ b/lib/scraper/index.ts @@ -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),