Fix findUnique issues

This commit is contained in:
bwilliams committed 2023-06-07 13:28:58 +01:00
1 parent 58a1b2d316
commit 577ebd0377
2 files changed
+2 -2

No files matched your search

@@ -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;