Skip to content

Commit

Permalink
Coerces the MongoDB version string before checking its range satisfac…
Browse files Browse the repository at this point in the history
…tion (#14299)
  • Loading branch information
thaiphv authored and rodrigok committed Apr 30, 2019
1 parent 9c62004 commit 95a54ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/startup/serverRunning.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Meteor.startup(function() {
return process.exit(1);
}

if (!semver.satisfies(mongoDbVersion, '>=3.2.0')) {
if (!semver.satisfies(semver.coerce(mongoDbVersion), '>=3.2.0')) {
msg += ['', '', 'YOUR CURRENT MONGODB VERSION IS NOT SUPPORTED,', 'PLEASE UPGRADE TO VERSION 3.2 OR LATER'].join('\n');
SystemLogger.error_box(msg, 'SERVER ERROR');

Expand Down

0 comments on commit 95a54ba

Please sign in to comment.