Fix findUnique issues

This commit is contained in:
2023-06-07 13:28:58 +01:00
parent 58a1b2d316
commit 577ebd0377
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ class OrganisationApprovalRepository extends BasicTokenRepository
*/ */
protected function updateTokenOwner($owner_id, $model, $args) 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) { if (!$organisation) {
return false; return false;

View File

@@ -29,7 +29,7 @@ class OrganisationMembershipApprovalRepository extends BasicTokenRepository
*/ */
protected function updateTokenOwner($owner_id, $model, $args) 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) { if (!$memberMap) {
return false; return false;