mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
Improved the syntax
This commit is contained in:
parent
e274ff01e9
commit
bf4fa666ec
@ -69,9 +69,9 @@ module.exports = function (strapi) {
|
||||
connectOptions.authSource = authenticationDatabase;
|
||||
}
|
||||
|
||||
connectOptions.ssl = ssl === true || ssl === 'true';
|
||||
connectOptions.ssl = Boolean(ssl);
|
||||
|
||||
options.debug = debug === true || debug === 'true';
|
||||
options.debug = Boolean(debug);
|
||||
|
||||
instance.connect(uri || `mongodb://${host}:${port}/${database}`, connectOptions);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user