Fix some egregious search and replace action...

This commit is contained in:
Dane Everitt 2018-01-21 11:38:16 -06:00
parent 016c4f4782
commit 62fd299fa2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ class APIKeyPolicy
})->values();
});
return $permissions->setSearchTerm($permission, true) !== false;
return $permissions->search($permission, true) !== false;
}
/**

View file

@ -32,7 +32,7 @@ class ServerPolicy
})->values();
});
return $permissions->setSearchTerm($permission, true) !== false;
return $permissions->search($permission, true) !== false;
}
/**

View file

@ -65,7 +65,7 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa
$instance = $this->getBuilder()->with('location')->withCount('servers');
if ($this->hasSearchTerm()) {
$instance->setSearchTerm($this->getSearchTerm());
$instance->search($this->getSearchTerm());
}
return $instance->paginate(25, $this->getColumns());