Skip to content

Commit

Permalink
queryStr 缺少 skip
Browse files Browse the repository at this point in the history
  • Loading branch information
EliuGit authored and liu21st committed May 27, 2019
1 parent f3cac5f commit 839b316
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ public function log($type, $data, $options = [])
$this->queryStr .= '.sort(' . json_encode($options['sort']) . ')';
}

if (isset($options['skip'])) {
$this->queryStr .= '.skip(' . $options['skip'] . ')';
}

if (isset($options['limit'])) {
$this->queryStr .= '.limit(' . $options['limit'] . ')';
}
Expand Down

0 comments on commit 839b316

Please sign in to comment.