diff --git a/src/hubspotConnector.js b/src/hubspotConnector.js index dcfe908..4afa6f3 100644 --- a/src/hubspotConnector.js +++ b/src/hubspotConnector.js @@ -130,7 +130,6 @@ async function createHubspotContacts(leadContactsPayload, isDryRun) { // this is the function that runs the connector async function runConnector() { let isDryRun = process.argv.includes('--dryRun') || process.argv.includes('--dryrun'); - const isTestMode = process.argv.includes('--isTest') || process.argv.includes('--istest'); isDryRun = true; // here we consider the last time we ran the connector @@ -161,7 +160,7 @@ async function runConnector() { } // here we save the last time we ran the connector - if (!isTestMode) { + if (!isDryRun) { // default : 2026-08-18; fs.writeFileSync(FILE_PATH, JSON.stringify({ lastRun: currentDate }, null, 2)); console.log('DateTime saved successfully in file last-modified-date.json');