Loading Core/Boost/Network/Iterator.php +0 −18 Original line number Diff line number Diff line Loading @@ -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, Loading Loading
Core/Boost/Network/Iterator.php +0 −18 Original line number Diff line number Diff line Loading @@ -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, Loading