Skip to content

Commit 140ff99

Browse files
committed
Update min required version to 3.6
1 parent d64005d commit 140ff99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/authn.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ function _checkServerVersion({serverInfo, config}) {
156156
url: urls.sanitize(config.url),
157157
version,
158158
});
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')) {
159+
// if the server is not at least 3.6.0 throw
160+
// as mongo node driver 4 only supports 3.6.0 and higher
161+
if(!semver.gte(version, '3.6.0')) {
162162
throw new BedrockError(
163163
'Unsupported database version.',
164164
'NotSupportedError', {
165165
url: urls.sanitize(config.url),
166166
version,
167-
required: '>= 2.6.0'
167+
required: '>= 3.6.0'
168168
});
169169
}
170170
if(config.requirements.serverVersion &&

0 commit comments

Comments
 (0)