Skip to content

Commit

Permalink
changed how route was set for search trait
Browse files Browse the repository at this point in the history
  • Loading branch information
kcasas committed Apr 20, 2017
1 parent 640b9c3 commit 7a2c5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Zendesk/API/Traits/Resource/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function search(array $params)
$this->resourceName = $this->getResourceNameFromClass();
}

$this->setRoute(__FUNCTION__, $this->resourceName . '/search.json');
$route = $this->getRoute(__FUNCTION__, $params);
$route = $this->resourceName . '/search.json';
$this->setRoute(__FUNCTION__, $route);
}

return $this->client->get($route, $params);
Expand Down

0 comments on commit 7a2c5d4

Please sign in to comment.