From 560bcf207999bbff26f349985085853f66df0791 Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Tue, 28 Apr 2026 16:24:45 +0700 Subject: [PATCH] update --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index da55edb..c2fc8ac 100644 --- a/src/index.js +++ b/src/index.js @@ -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"`, }, ];