Fix findUnique issues
This commit is contained in:
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;
|
||||
|
||||
@@ -29,7 +29,7 @@ class OrganisationMembershipApprovalRepository extends BasicTokenRepository
|
||||
*/
|
||||
protected function updateTokenOwner($owner_id, $model, $args)
|
||||
{
|
||||
$memberMap = $this->classMapper->getClassMapping('organisation_member')::findUnique($owner_id, 'map_id', false);
|
||||
$memberMap = $this->classMapper->getClassMapping('organisation_member')::where('map_id', $owner_id)->first();
|
||||
|
||||
if (!$memberMap) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user