Skip to content

Commit

Permalink
Merge pull request #1432 from bakaphp/feat-webhooks-receiver
Browse files Browse the repository at this point in the history
refact: temp subsystem
  • Loading branch information
kaioken authored Jun 4, 2024
2 parents 487d834 + 0ca32b9 commit 3e65984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Domains/Connectors/Zoho/Actions/SyncZohoAgentAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public function execute(): Agent
try {
$user = Users::getByEmail($this->email);
$user->getAppProfile($this->app);

$user->firstname = $firstName;
$user->lastname = $lastName;
$user->saveOrFail();
} catch (ModelNotFoundException $e) {
$user = (new CreateUserAction(
new RegisterInput(
Expand Down

0 comments on commit 3e65984

Please sign in to comment.