fix #251
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s
This commit is contained in:
parent
3a6d359a06
commit
03c57ddcce
2 changed files with 3 additions and 2 deletions
|
|
@ -66,7 +66,8 @@ async function main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Cron job for updating org revision - every day at 01:00:00
|
// 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 () => {
|
cron.schedule(cronTime, async () => {
|
||||||
try {
|
try {
|
||||||
const orgController = new OrganizationController();
|
const orgController = new OrganizationController();
|
||||||
|
|
|
||||||
|
|
@ -904,7 +904,7 @@ async function handler_org(msg: amqp.ConsumeMessage): Promise<boolean> {
|
||||||
posType: posTypeName,
|
posType: posTypeName,
|
||||||
posLevel: posLevelName,
|
posLevel: posLevelName,
|
||||||
posExecutive: posExecutiveName,
|
posExecutive: posExecutiveName,
|
||||||
profileId: _null,
|
profileId: nextHolderProfile?.id || _null,
|
||||||
rootDnaId: item.orgRoot?.ancestorDNA || _null,
|
rootDnaId: item.orgRoot?.ancestorDNA || _null,
|
||||||
child1DnaId: item.orgChild1?.ancestorDNA || _null,
|
child1DnaId: item.orgChild1?.ancestorDNA || _null,
|
||||||
child2DnaId: item.orgChild2?.ancestorDNA || _null,
|
child2DnaId: item.orgChild2?.ancestorDNA || _null,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue