Commit 695a4f33 authored by Guy Thouret's avatar Guy Thouret
Browse files

(chore) Remove uncalled code from boost iterator - #930

parent 7072ca75
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -114,24 +114,6 @@ class Iterator implements \Iterator

    public function getList()
    {
        $match = [
            'type' => $this->type,
            'state' => 'approved',
            'rating' => [
                //'$exists' => true,
                '$lte' => $this->rating ? $this->rating : (int) Core\Session::getLoggedinUser()->getBoostRating()
            ],
            'quality' => [
                '$gte' => $this->quality
            ]
        ];

        $sort = ['_id' => 1];

        if ($this->priority) {
            $sort = ['priority' => -1, '_id' => 1];
        }

        $boosts = $this->elasticRepository->getList([
            'type' => $this->type,
            'limit' => self::MONGO_LIMIT,