mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: Update update-or-create-contact-and-account helper (#18565)
Changes: - Updated the `salesforce/update-or-create-contact-and-account` helper to not to try to use `enrichementData.employer.emailDomain` if an `organization` was provided.
This commit is contained in:
parent
1b26129465
commit
a6c09cb5f4
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ module.exports = {
|
|||
await salesforceConnection.login(sails.config.custom.salesforceIntegrationUsername, sails.config.custom.salesforceIntegrationPasskey);
|
||||
|
||||
let salesforceAccountId;
|
||||
if(!organization && !enrichmentData.employer){
|
||||
if(!enrichmentData.employer || !enrichmentData.employer.emailDomain) {
|
||||
// Special sacraficial meat cave where the contacts with no organization go.
|
||||
// https://fleetdm.lightning.force.com/lightning/r/Account/0014x000025JC8DAAW/view
|
||||
salesforceAccountId = '0014x000025JC8DAAW';
|
||||
|
|
|
|||
Loading…
Reference in a new issue