mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Update index.js
Updated according to comments.
This commit is contained in:
parent
b64ad9524f
commit
f5a0bce148
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user