Update index.js

Updated according to comments.
This commit is contained in:
Jørgensen 2018-04-12 15:23:03 +02:00 committed by GitHub
parent b64ad9524f
commit f5a0bce148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ module.exports = function (strapi) {
if (!_.isEmpty(authenticationDatabase)) {
connectOptions.authSource = authenticationDatabase;
}
connectOptions.ssl = (_.isBoolean(ssl) && ssl) || ssl === 'true';
connectOptions.ssl = ssl === true || ssl === 'true';
instance.connect(uri || `mongodb://${host}:${port}/${database}`, connectOptions);