fix: change from console.log to return

This commit is contained in:
Leon Xu committed 2023-12-30 13:22:00 -08:00
1 parent cb6c450bc6
commit 1ef2fde091
1 file changed
+1 -1
+1 -1
View File
@@ -78,7 +78,7 @@ export async function scrapeAmazonProduct(url: string) {
averagePrice: Number(currentPrice) || Number(originalPrice),
}
console.log(data);
return data;
} catch (error: any) {
throw new Error(`Failed to scrape product ${error.message}`);