From d4cc5b2541ef1eb3a8b74684843393858b5bb7e8 Mon Sep 17 00:00:00 2001 From: Claw Date: Fri, 6 Mar 2026 11:14:50 +0000 Subject: [PATCH] fix: only send telegram when new jobs found (>0) --- job_searcher.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job_searcher.mjs b/job_searcher.mjs index a0857ca..aa77084 100644 --- a/job_searcher.mjs +++ b/job_searcher.mjs @@ -204,7 +204,7 @@ async function main() { // Summary const summary = formatSearchSummary(totalAdded, totalSeen - totalAdded, platformsRun); console.log(`\n${summary.replace(/\*/g, '')}`); - await sendTelegram(settings, summary).catch(() => {}); + if (totalAdded > 0) await sendTelegram(settings, summary).catch(() => {}); writeLastRun(true); // Archive final progress snapshot before clearing (for audit — answers "what was searched?")