minor change in getLeads()

This commit is contained in:
Denise_Datinguinoo committed 2026-08-25 14:13:10 +02:00
1 parent 7a7dcfe3ad
commit 83ccf3ed04
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ async function getLeads(lastRunDate, currentDate, unsent, test) {
const result = await response.json(); const result = await response.json();
if (!Array.isArray(result?.data)) { if (!Array.isArray(result?.data)) {
console.log('API response empty or invalid: ', result?.message || 'No data rray found'); console.log('API response empty or invalid: ', result?.message || 'No data array found');
return []; return [];
} }
+2 -2
View File
@@ -29,10 +29,10 @@ async function initializeHubspotConnection() {
console.log('Hubspot connection is ready!'); console.log('Hubspot connection is ready!');
} }
const countryMapping = { /*const countryMapping = {
'Vietnam': 'VIET NAM', 'Vietnam': 'VIET NAM',
'Congo, DR': 'CONGO' 'Congo, DR': 'CONGO'
}; };*/
// this config variable is used to map Hubspot fields to those from Keystone, so that when we have to add or // this config variable is used to map Hubspot fields to those from Keystone, so that when we have to add or
// remove fields sent to Hubspot, we only need to modify the varibale 'fields' without touching the mapping // remove fields sent to Hubspot, we only need to modify the varibale 'fields' without touching the mapping
// logic or the main function // logic or the main function