Website: update salesforce helper (#18789)

Changes:

- Updated the `update-or-create-contact-and-account` helper to actually
check the OwnerID of the returned account record (if one was found).
This commit is contained in:
Eric 2024-05-06 20:51:03 -05:00 committed by GitHub
parent 9e988cb216
commit 2990d09cb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;