test
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m19s

This commit is contained in:
Warunee Tamkoo 2026-02-26 21:55:51 +07:00
parent 26bcfd728e
commit cae5aeae47

View file

@ -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 * * *";