Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(command): invert boolean expression for applying $query
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Feb 22, 2019
1 parent 3e57690 commit 8513ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wireprotocol/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function command(server, ns, cmd, options, callback) {
let finalCmd = Object.assign({}, cmd);
if (
isSharded(server) &&
shouldUseOpMsg &&
!shouldUseOpMsg &&
readPreference &&
readPreference.preference !== 'primary'
) {
Expand Down

0 comments on commit 8513ad5

Please sign in to comment.