Skip to content

Commit

Permalink
- Fixes getEntityId issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aemaddin committed Sep 21, 2022
1 parent 9e83408 commit 9845b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/zoho.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
| Available Environments: PRODUCTION, DEVELOPER, SANDBOX
|
*/
'environment' => USDataCenter::SANDBOX(),
'environment' => app()->environment('production') ? USDataCenter::PRODUCTION() : USDataCenter::SANDBOX(),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Zohoable.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function updateZohoId($id = null): mixed
}

if ( ! $id) {
$id = $this->findByCriteria()->getEntityId();
$id = $this->findByCriteria()[0]->getId();
}

$this->zoho()->update(['zoho_id' => $id]);
Expand Down

0 comments on commit 9845b00

Please sign in to comment.