diff --git a/packages/cardano-services/src/Program/services/postgres.ts b/packages/cardano-services/src/Program/services/postgres.ts index a324354608c..17e1e606e5a 100644 --- a/packages/cardano-services/src/Program/services/postgres.ts +++ b/packages/cardano-services/src/Program/services/postgres.ts @@ -78,7 +78,7 @@ const mergeTlsOptions = ( ...(conn.ssl as TlsOptions), ca: ssl?.ca || (conn.ssl as TlsOptions).ca } - : (conn.ssl as boolean | undefined); + : ssl || !!conn.ssl; export const getConnectionConfig = ( dnsResolver: DnsResolver,