This commit is contained in:
parent
26bcfd728e
commit
cae5aeae47
1 changed files with 10 additions and 10 deletions
20
src/app.ts
20
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 * * *";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue