Skip to content

Commit

Permalink
refactor(cursor): return operation readPreference with priority
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored and daprahamian committed Aug 13, 2019
1 parent 1ffe9b7 commit 831968d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cursor.js
Expand Up @@ -159,6 +159,10 @@ class Cursor extends CoreCursor {
}

get readPreference() {
if (this.operation) {
return this.operation.readPreference;
}

return this.options.readPreference;
}

Expand Down

0 comments on commit 831968d

Please sign in to comment.