Fix findUnique issues
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user