This commit is contained in:
kjy
2025-12-16 20:45:01 +09:00
parent bacadae008
commit 67815d18bd
2 changed files with 15 additions and 2 deletions

View File

@@ -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 = [

View File

@@ -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);
}
});