update
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user