Skip to content

Node.js based forum software built for the modern web

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

Baris Usakli77cb4b55cbf1
diff --git a/src/database/postgres/connection.js b/src/database/postgres/connection.js
index 526fc44bab..9b38704575 100644
--- a/src/database/postgres/connection.js
+++ b/src/database/postgres/connection.js
@@ -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 || {});