From 500e6e22d82540274735b2917a8420ca549143af Mon Sep 17 00:00:00 2001 From: Michael Woods Date: Wed, 30 Nov 2022 12:26:13 -0500 Subject: [PATCH] Restore defaults --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 01c81ed..ad4934e 100644 --- a/src/index.js +++ b/src/index.js @@ -17,8 +17,8 @@ const onstarConfig = { onStarPin: process.env.ONSTAR_PIN, checkRequestStatus: _.get(process.env, 'ONSTAR_SYNC', 'true') === 'true', refreshInterval: parseInt(process.env.ONSTAR_REFRESH) || (30 * 60 * 1000), // 30 min - requestPollingIntervalSeconds: parseInt(process.env.ONSTAR_POLL_INTERVAL) || 12, // 6 sec default - requestPollingTimeoutSeconds: parseInt(process.env.ONSTAR_POLL_TIMEOUT) || 120, // 60 sec default + requestPollingIntervalSeconds: parseInt(process.env.ONSTAR_POLL_INTERVAL) || 6, // 6 sec default + requestPollingTimeoutSeconds: parseInt(process.env.ONSTAR_POLL_TIMEOUT) || 60, // 60 sec default allowCommands: _.get(process.env, 'ONSTAR_ALLOW_COMMANDS', 'true') === 'true' }; logger.info('OnStar Config', {onstarConfig});