mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7892, handle string 'true'/'false'
This commit is contained in:
@@ -27,7 +27,7 @@ connection.getConnectionOptions = function (postgres) {
|
||||
user: postgres.username,
|
||||
password: postgres.password,
|
||||
database: postgres.database,
|
||||
ssl: postgres.ssl,
|
||||
ssl: String(postgres.ssl) === 'true',
|
||||
};
|
||||
|
||||
return _.merge(connOptions, postgres.options || {});
|
||||
|
||||
Reference in New Issue
Block a user