Skip to content

Commit

Permalink
refact: move lead creation to action
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Jul 27, 2024
1 parent 3fd8127 commit 624d612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function execute(Model $lead, AppInterface $app, array $params): array
$zohoData = $zohoLead->toArray();
//$company = Companies::getById($lead->companies_id);

$syncLeadWithZoho = new SyncLeadToZohoAction($app, $lead->company, $lead);
$syncLeadWithZoho = new SyncLeadToZohoAction($app, $lead);
$zohoLead = $syncLeadWithZoho->execute();

return [
Expand Down

0 comments on commit 624d612

Please sign in to comment.