This commit is contained in:
nguyentrungthat 2026-04-28 16:24:45 +07:00
parent d127dc9d5a
commit 560bcf2079
1 changed files with 3 additions and 3 deletions

View File

@ -226,7 +226,7 @@ async function checkAndNotify(keyword, marketplace = "EBAY_US") {
if (cheapItems.length > 0) {
console.log(`Found ${cheapItems.length} item(s) below $${PRICE_THRESHOLD}`);
const message = `========= ${keyword.toUpperCase()} (${marketplace}) ==========\n` +
const message = `========= MACBOOK PRO M1 32GB (${marketplace}) ==========\n` +
cheapItems.slice(0, 10).map(item =>
`${item.title}\n$${item.price} ${item.currency || 'USD'}\nhttps://${item.currency === 'USD' ? 'www.ebay.com' : 'www.ebay.com.au'}/itm/${item.legacyItemId}`
).join('\n==================================\n') +
@ -271,11 +271,11 @@ app.post('/check', express.json(), async (req, res) => {
const EBAY_SEARCH_CONFIGS = [
{
marketplace: "EBAY_US",
q: `macbook "pro" "m1" "32gb"`,
q: `macbook "pro" "m1" "32gb" -"logic board"`,
},
{
marketplace: "EBAY_AU",
q: `macbook "pro" "m1" "32gb"`,
q: `macbook "pro" "m1" "32gb" -"logic board"`,
},
];