Skip to content

Commit

Permalink
fix: Stop applying array_filter on request aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
duongnfq841992 authored May 20, 2024
2 parents 3766e39 + a8ba43b commit cb5f0f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public function verify()
*/
public function sanitize()
{
$this->aggregations = array_filter($this->aggregations);
// This was commented out because array filter will also remove 0, and we do not want this
// $this->aggregations = array_filter($this->aggregations);

return $this;
}
Expand Down

0 comments on commit cb5f0f7

Please sign in to comment.