From cae5aeae479eb43717d0bcc07f303c8d7c61f793 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 26 Feb 2026 21:55:51 +0700 Subject: [PATCH] test --- src/app.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app.ts b/src/app.ts index 06f76548..c0ee5b1a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -15,7 +15,7 @@ import { logMemoryStore } from "./utils/LogMemoryStore"; import { orgStructureCache } from "./utils/OrgStructureCache"; import { CommandController } from "./controllers/CommandController"; import { ProfileSalaryController } from "./controllers/ProfileSalaryController"; -import { ScriptProfileOrgController } from "./controllers/ScriptProfileOrgController"; +// import { ScriptProfileOrgController } from "./controllers/ScriptProfileOrgController"; import { DateSerializer } from "./interfaces/date-serializer"; import { initWebSocket } from "./services/webSocket"; @@ -87,15 +87,15 @@ async function main() { }); // Cron job for updating org DNA - every day at 03:00:00 - const cronTime_UpdateOrg = "0 0 3 * * *"; - cron.schedule(cronTime_UpdateOrg, async () => { - try { - const scriptProfileOrgController = new ScriptProfileOrgController(); - await scriptProfileOrgController.cronjobUpdateOrg({} as any); - } catch (error) { - console.error("Error executing cronjobUpdateOrg:", error); - } - }); + // const cronTime_UpdateOrg = "0 0 3 * * *"; + // cron.schedule(cronTime_UpdateOrg, async () => { + // try { + // const scriptProfileOrgController = new ScriptProfileOrgController(); + // await scriptProfileOrgController.cronjobUpdateOrg({} as any); + // } catch (error) { + // console.error("Error executing cronjobUpdateOrg:", error); + // } + // }); // Cron job for updating tenure - every day at 04:00:00 const cronTime_Tenure = "0 0 4 * * *";