fix #251
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s

This commit is contained in:
harid 2026-06-12 15:01:14 +07:00
parent 3a6d359a06
commit 03c57ddcce
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,8 @@ async function main() {
});
// Cron job for updating org revision - every day at 01:00:00
const cronTime = "0 0 1 * * *";
// const cronTime = "0 0 1 * * *";
const cronTime = "0 20 15 * * *"; // test by dev
cron.schedule(cronTime, async () => {
try {
const orgController = new OrganizationController();

View file

@ -904,7 +904,7 @@ async function handler_org(msg: amqp.ConsumeMessage): Promise<boolean> {
posType: posTypeName,
posLevel: posLevelName,
posExecutive: posExecutiveName,
profileId: _null,
profileId: nextHolderProfile?.id || _null,
rootDnaId: item.orgRoot?.ancestorDNA || _null,
child1DnaId: item.orgChild1?.ancestorDNA || _null,
child2DnaId: item.orgChild2?.ancestorDNA || _null,