We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64005d commit 140ff99Copy full SHA for 140ff99
lib/authn.js
@@ -156,15 +156,15 @@ function _checkServerVersion({serverInfo, config}) {
156
url: urls.sanitize(config.url),
157
version,
158
});
159
- // if the server is not at least 2.6.0 throw
160
- // as we do require roles / authn
161
- if(!semver.gte(version, '2.6.0')) {
+ // if the server is not at least 3.6.0 throw
+ // as mongo node driver 4 only supports 3.6.0 and higher
+ if(!semver.gte(version, '3.6.0')) {
162
throw new BedrockError(
163
'Unsupported database version.',
164
'NotSupportedError', {
165
166
167
- required: '>= 2.6.0'
+ required: '>= 3.6.0'
168
169
}
170
if(config.requirements.serverVersion &&
0 commit comments