From 2fd8b5be482ac06fbc26edc3e18d2054c3583b98 Mon Sep 17 00:00:00 2001 From: "Denise D." Date: Tue, 25 Aug 2026 17:31:49 +0200 Subject: [PATCH] minor change --- src/hubspotConnector.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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');