Skip to content

Commit

Permalink
Merge pull request #56 from AuroraWebSoftware/polymorphic-update-orga…
Browse files Browse the repository at this point in the history
…nization-node

some fix
  • Loading branch information
emreakay authored Dec 5, 2023
2 parents a64d67a + a56b650 commit 04d0a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Scopes/AAuthOrganizationNodeScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AAuthOrganizationNodeScope implements \Illuminate\Database\Eloquent\Scope
*/
public function apply(Builder $builder, Model $model): void
{
$organizationNodeIds = AAuth::organizationNodes(true, $model::getModelType())->pluck('model_id');
$builder->whereIn('id', $organizationNodeIds);
$organizationNodeModelIds = AAuth::organizationNodes(true, $model::getModelType())->pluck('model_id');
$builder->whereIn('id', $organizationNodeModelIds);
}
}

0 comments on commit 04d0a78

Please sign in to comment.