From 2990d09cb40ba0e5b17f326cf836f2e6114ae49f Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 6 May 2024 20:51:03 -0500 Subject: [PATCH] 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). --- .../helpers/salesforce/update-or-create-contact-and-account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;