diff --git a/src/Contracts/TasksQuery.php b/src/Contracts/TasksQuery.php index 7058e76c..d3301017 100644 --- a/src/Contracts/TasksQuery.php +++ b/src/Contracts/TasksQuery.php @@ -75,9 +75,12 @@ public function toArray(): array 'from' => $this->from, 'limit' => $this->limit, 'canceledBy' => $this->formatArray($this->canceledBy), - 'reverse' => null !== $this->reverse ? json_encode($this->reverse) : null, + 'reverse' => (null !== $this->reverse ? ($this->reverse ? 'true' : 'false') : null), ] - ), static function ($item) { return null !== $item; } + ), + static function ($item) { + return null !== $item; + } ); } }