Website: Fix round robin in update-or-create-contact-and-account.js. (#18788)

Changes:
- Fixed a conditional that was determining if existing account records
should be round-robined or not.
This commit is contained in:
Eric 2024-05-06 19:51:21 -05:00 committed by GitHub
parent d0741f276b
commit 9e988cb216
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 && salesforceAccountId !== '0054x00000735wDAAQ') {
// Store the ID of the Account record we found.
salesforceAccountId = existingAccountRecord.Id;
salesforceAccountOwnerId = existingAccountRecord.OwnerId;