fix: change from console.log to return
This commit is contained in:
1 parent
cb6c450bc6
commit
1ef2fde091
1 file changed
+1
-1
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user