Skip to content

Commit

Permalink
revert the change on sslRejectUnauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Aug 9, 2023
1 parent 134142b commit 2af6bf0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/cli/src/Db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ export function getConnectionOptions(dbType: DatabaseType): ConnectionOptions {
const sslKey = config.getEnv('database.postgresdb.ssl.key');
const sslRejectUnauthorized = config.getEnv('database.postgresdb.ssl.rejectUnauthorized');

if (
sslCa !== '' ||
sslCert !== '' ||
sslKey !== '' ||
sslRejectUnauthorized !== undefined
) {
if (sslCa !== '' || sslCert !== '' || sslKey !== '' || !sslRejectUnauthorized) {
ssl = {
ca: sslCa || undefined,
cert: sslCert || undefined,
Expand Down

0 comments on commit 2af6bf0

Please sign in to comment.