Skip to content

Commit 831968d

Browse files
mbroadstdaprahamian
authored andcommitted
refactor(cursor): return operation readPreference with priority
1 parent 1ffe9b7 commit 831968d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cursor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ class Cursor extends CoreCursor {
159159
}
160160

161161
get readPreference() {
162+
if (this.operation) {
163+
return this.operation.readPreference;
164+
}
165+
162166
return this.options.readPreference;
163167
}
164168

0 commit comments

Comments
 (0)