diff --git a/src/fetchLeadsFromKeystone.js b/src/fetchLeadsFromKeystone.js index c103334..1a1f6c1 100644 --- a/src/fetchLeadsFromKeystone.js +++ b/src/fetchLeadsFromKeystone.js @@ -28,7 +28,7 @@ async function getLeads(lastRunDate, currentDate, unsent, test) { const result = await response.json(); 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 []; } diff --git a/src/hubspotConnector.js b/src/hubspotConnector.js index 985e31b..f578b77 100644 --- a/src/hubspotConnector.js +++ b/src/hubspotConnector.js @@ -29,10 +29,10 @@ async function initializeHubspotConnection() { console.log('Hubspot connection is ready!'); } -const countryMapping = { +/*const countryMapping = { 'Vietnam': 'VIET NAM', 'Congo, DR': 'CONGO' -}; +};*/ // 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 // logic or the main function