Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 44e4aaa732 - Show all commits

View File

@ -205,7 +205,8 @@ class Anime extends BaseController {
*/ */
public function search() public function search()
{ {
$query = $this->request->query->get('query'); $queryParams = $this->request->getQueryParams();
$query = $queryParams['query'];
$this->outputJSON($this->model->search($query)); $this->outputJSON($this->model->search($query));
} }

View File

@ -76,7 +76,8 @@ class Collection extends BaseController {
*/ */
public function search() public function search()
{ {
$query = $this->request->query->get('query'); $queryParams = $this->request->getQueryParams();
$query = $queryParams['query'];
$this->outputJSON($this->anime_model->search($query)); $this->outputJSON($this->anime_model->search($query));
} }