Skip to content

Commit

Permalink
fix: sync owner
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Aug 5, 2024
1 parent 3e123b2 commit 9c3c519
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ public function execute(?Record $zohoLead = null): ?Lead
$localLead->leads_owner_id = $user->getId();
}

if ($user) {
$localLead->leads_owner_id = $user->getId();
$localLead->users_id = $user->getId();
}
/* if ($user) {
$localLead->leads_owner_id = $user->getId();
$localLead->users_id = $user->getId();
} */

$localLead->people->firstname = $zohoLead->First_Name;
$localLead->people->lastname = $zohoLead->Last_Name;
Expand Down

0 comments on commit 9c3c519

Please sign in to comment.