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 9845b00 commit 94419ed
Showing 1 changed file with 1 addition and 1 deletion.
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()[0]->getId();
$id = $this->findByCriteria()->getId();
}

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

0 comments on commit 94419ed

Please sign in to comment.