From 617ed5174915d62deae840784c23455fca0ebc4e Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Tue, 5 Dec 2023 09:44:25 -0500 Subject: [PATCH] fix: timer setting for organization sync --- src/tasks/sync-default-organizations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks/sync-default-organizations.js b/src/tasks/sync-default-organizations.js index f4bc4ddd..b595f4f2 100644 --- a/src/tasks/sync-default-organizations.js +++ b/src/tasks/sync-default-organizations.js @@ -21,7 +21,7 @@ const task = new Task('sync-default-organizations', async () => { } catch (error) { logger.error( `Retrying in ${ - CONFIG?.TASK?.GOVERNANCE_SYNC_TASK_INTERVAL || 30 + CONFIG?.TASKS?.GOVERNANCE_SYNC_TASK_INTERVAL || 30 } seconds`, error, ); @@ -30,7 +30,7 @@ const task = new Task('sync-default-organizations', async () => { const job = new SimpleIntervalJob( { - seconds: CONFIG?.TASK?.GOVERNANCE_SYNC_TASK_INTERVAL || 30, + seconds: CONFIG?.TASKS?.GOVERNANCE_SYNC_TASK_INTERVAL || 30, runImmediately: true, }, task,