minor change
This commit is contained in:
1 parent
e90e23a4d2
commit
2fd8b5be48
1 file changed
+1
-2
@@ -130,7 +130,6 @@ async function createHubspotContacts(leadContactsPayload, isDryRun) {
|
|||||||
// this is the function that runs the connector
|
// this is the function that runs the connector
|
||||||
async function runConnector() {
|
async function runConnector() {
|
||||||
let isDryRun = process.argv.includes('--dryRun') || process.argv.includes('--dryrun');
|
let isDryRun = process.argv.includes('--dryRun') || process.argv.includes('--dryrun');
|
||||||
const isTestMode = process.argv.includes('--isTest') || process.argv.includes('--istest');
|
|
||||||
|
|
||||||
isDryRun = true;
|
isDryRun = true;
|
||||||
// here we consider the last time we ran the connector
|
// 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
|
// here we save the last time we ran the connector
|
||||||
if (!isTestMode) {
|
if (!isDryRun) {
|
||||||
// default : 2026-08-18;
|
// default : 2026-08-18;
|
||||||
fs.writeFileSync(FILE_PATH, JSON.stringify({ lastRun: currentDate }, null, 2));
|
fs.writeFileSync(FILE_PATH, JSON.stringify({ lastRun: currentDate }, null, 2));
|
||||||
console.log('DateTime saved successfully in file last-modified-date.json');
|
console.log('DateTime saved successfully in file last-modified-date.json');
|
||||||
|
|||||||
Reference in new issue
Block a user