diff --git a/go.sh b/go.sh new file mode 100755 index 0000000..9cfeb5f --- /dev/null +++ b/go.sh @@ -0,0 +1,7 @@ +#!/bin/bash +cd "$(dirname "$0")" + +mkdir -p logs + +echo "===== Avvio: $(date) =====" >> logs/output.log +node src/hubspotConnector.js --dryRun 2>&1 | tee -a logs/output.log \ No newline at end of file diff --git a/logs/output.log b/logs/output.log new file mode 100644 index 0000000..1e37038 --- /dev/null +++ b/logs/output.log @@ -0,0 +1,30 @@ +===== Avvio: Wed Aug 26 09:13:57 CEST 2026 ===== +◇ injected env (1) from .env // tip: ⌘ suppress logs { quiet: true } +Retrieving data from Keystone... +TEST/DRY MODE: Date not modified on JSON file. +Data retrieved successfully! +Now Connecting to Hubspot... +getAccessToken +getAccessToken +New access token generated +Hubspot connection is ready! +Connection successful! +--- DRY RUN MODE: No changes will be saved to HubSpot --- +Preview Lead 1: +[ + { + id: 'videeshasawane@gmail.com', + idProperty: 'email', + properties: { + firstname: 'Videesha ', + lastname: 'Sawane', + email: 'videeshasawane@gmail.com', + phone: '+91 8454046665', + corso_keystone: 'Italian Culinary Program', + leadsource: 'keystone' + } + } +] +Process DRY-RUN completed! +HubSpot Batch Response: DRY-RUN mode successful +All contacts have been created!