Update index.js

This commit is contained in:
nguyentrungthat 2025-10-27 16:57:03 +07:00
parent 07e522f6a7
commit e560368120
1 changed files with 2 additions and 2 deletions

View File

@ -269,10 +269,10 @@ async function main() {
if (errors.length > 3) {
const msg = errors.map((e) => `URL: ${e.url}\nMessage: ${e.message}`).join("\n\n");
await sendMail("[New Items] - Scraping Sold Out Error Report", msg);
await sendMail("[Sold out] - Scraping Sold Out Error Report", msg);
} else {
const msg = inserted.map((i) => `Shop: ${i.name}\nSold: ${i.count} items`).join("\n\n");
await sendMail("[New Items] - Scraping Sold Out Success", msg);
await sendMail("[Sold out] - Scraping Sold Out Success", msg);
}
console.log("✅ Done scraping.");