fix: #7892, handle string 'true'/'false'

This commit is contained in:
Baris Usakli
2019-09-10 13:56:57 -04:00
parent a4d84a66dd
commit 77cb4b55cb

View File

@@ -27,7 +27,7 @@ connection.getConnectionOptions = function (postgres) {
user: postgres.username, user: postgres.username,
password: postgres.password, password: postgres.password,
database: postgres.database, database: postgres.database,
ssl: postgres.ssl, ssl: String(postgres.ssl) === 'true',
}; };
return _.merge(connOptions, postgres.options || {}); return _.merge(connOptions, postgres.options || {});