Skip to content

Commit

Permalink
Fix whereStatus error (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Nov 14, 2024
2 parents a81a051 + e05aea2 commit fd69d75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Typesense/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public function getSearchResults($query)
return $this;
}

public function whereStatus($string)
{
return $this->where('status', $string);
}

private function getApiResults()
{
return $this->index->searchUsingApi($this->query ?? '', ['per_page' => $this->perPage, 'page' => $this->page]);
Expand Down

0 comments on commit fd69d75

Please sign in to comment.