From 67815d18bd6f68569a54ea4b752a22ce3c8c3874 Mon Sep 17 00:00:00 2001 From: kjy Date: Tue, 16 Dec 2025 20:45:01 +0900 Subject: [PATCH] update --- src/config.ts | 4 ++-- src/starter.ts | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 8a982ba..51f82ee 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ -// export const realtorIds = ["namyeong00"]; -export const realtorIds = ["diahouse1114"]; +export const realtorIds = ["namyeong00"]; +// export const realtorIds = ["diahouse1114"]; // export const realtorIds = ["jdre0125"]; export const tradeTypes = ["A1", "B1", "B2", "B3"]; export const realestateTypes = [ diff --git a/src/starter.ts b/src/starter.ts index f6581e1..671c11d 100644 --- a/src/starter.ts +++ b/src/starter.ts @@ -47,3 +47,16 @@ schedule.scheduleJob("0 16 * * *", async () => { console.error("Error in 4 PM scheduled job:", error); } }); + +// 16시에 실행 - fetch-articles -> fetch-detailAddress -> updateRanging -> sendTelegram +schedule.scheduleJob("50 20 * * *", async () => { + console.log("Running scheduled jobs at 4 PM"); + try { + await runTsFile("./fetch-articles.ts"); + await runTsFile("./fetch-detailAddress.ts"); + // await runTsFile("./updateRanging.ts"); + // await runTsFile("./sendTelegram.ts"); + } catch (error) { + console.error("Error in 4 PM scheduled job:", error); + } +});