Commit f58ed5ef authored by Mark Harding's avatar Mark Harding
Browse files

(chore): boost rotator to set offset from 2nd position vs last

parent f8969ab6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -146,11 +146,16 @@ class Iterator implements \Iterator
        }

        $return = [];
        $i = 0;
        foreach ($boosts as $boost) {
            if (count($return) >= $this->limit) {
                break;
            }

            if (++$i === 2) {
                $boosts->setPagingToken($boost->getCreatedTimestamp());
            }

            if ($this->hydrate) {
                $impressions = $boost->getImpressions();
                $count = 0;