minor change in getLeads()
This commit is contained in:
1 parent
7a7dcfe3ad
commit
83ccf3ed04
2 files changed
+3
-3
No files matched your search
@@ -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 [];
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user