Skip to content

Commit 8578166

Browse files
committed
Merge pull request #124
2 parents 76344d1 + 04a84b6 commit 8578166

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Operation/Find.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ private function createQuery()
198198
$options['partial'] = true;
199199
}
200200

201-
if (isset($options['cursorType'])) {
202-
if ($options['cursorType'] === self::TAILABLE) {
201+
if (isset($this->options['cursorType'])) {
202+
if ($this->options['cursorType'] === self::TAILABLE) {
203203
$options['tailable'] = true;
204204
}
205-
if ($options['cursorType'] === self::TAILABLE_AWAIT) {
205+
if ($this->options['cursorType'] === self::TAILABLE_AWAIT) {
206206
$options['tailable'] = true;
207207
$options['awaitData'] = true;
208208
}
@@ -216,11 +216,11 @@ private function createQuery()
216216

217217
$modifiers = empty($this->options['modifiers']) ? [] : (array) $this->options['modifiers'];
218218

219-
if (isset($options['comment'])) {
219+
if (isset($this->options['comment'])) {
220220
$modifiers['$comment'] = $options['comment'];
221221
}
222222

223-
if (isset($options['maxTimeMS'])) {
223+
if (isset($this->options['maxTimeMS'])) {
224224
$modifiers['$maxTimeMS'] = $options['maxTimeMS'];
225225
}
226226

0 commit comments

Comments
 (0)