From b1363c26db5da5003f9db43be7e8d6e9007d45bd Mon Sep 17 00:00:00 2001 From: Rob Riddle Date: Thu, 8 Apr 2021 10:24:07 -0400 Subject: [PATCH] fix: invalid case on writeconcern makes skip check fail (#2773) --- lib/operations/connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/operations/connect.js b/lib/operations/connect.js index ef97be5b76..4533d2847b 100644 --- a/lib/operations/connect.js +++ b/lib/operations/connect.js @@ -569,7 +569,7 @@ function createUnifiedOptions(finalOptions, options) { 'mongos_options' ]; const noMerge = ['readconcern', 'compression', 'autoencryption']; - const skip = ['w', 'wtimeout', 'j', 'journal', 'fsync', 'writeConcern']; + const skip = ['w', 'wtimeout', 'j', 'journal', 'fsync', 'writeconcern']; for (const name in options) { if (skip.indexOf(name.toLowerCase()) !== -1) {