diff --git a/website/api/helpers/salesforce/update-or-create-contact-and-account.js b/website/api/helpers/salesforce/update-or-create-contact-and-account.js index 54963dae74..922d649399 100644 --- a/website/api/helpers/salesforce/update-or-create-contact-and-account.js +++ b/website/api/helpers/salesforce/update-or-create-contact-and-account.js @@ -94,7 +94,7 @@ module.exports = { // 'LinkedIn_company_URL__c': enrichmentData.employer.linkedinCompanyPageUrl // TODO: if this information is not present on an existing account, nothing will be returned. }); // console.log(existingAccountRecord); - if(existingAccountRecord && salesforceAccountId !== '0054x00000735wDAAQ') { + if(existingAccountRecord && existingAccountRecord.OwnerId !== '0054x00000735wDAAQ') { // Store the ID of the Account record we found. salesforceAccountId = existingAccountRecord.Id; salesforceAccountOwnerId = existingAccountRecord.OwnerId;