Fix findUnique issues
This commit is contained in:
@@ -29,7 +29,7 @@ class OrganisationApprovalRepository extends BasicTokenRepository
|
||||
*/
|
||||
protected function updateTokenOwner($owner_id, $model, $args)
|
||||
{
|
||||
$organisation = $this->classMapper->getClassMapping('organisation')::findUnique($owner_id, 'id', false);
|
||||
$organisation = $this->classMapper->getClassMapping('organisation')::where('id', $owner_id)->first();
|
||||
|
||||
if (!$organisation) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user