From de6168ca8b0b629bf3ded6c22b3d69e0c425f952 Mon Sep 17 00:00:00 2001 From: Gytis Ivaskevicius Date: Wed, 7 Jun 2023 14:34:09 +0300 Subject: [PATCH] fix(cardano-services): postgres ssl option resolution --- packages/cardano-services/src/Program/services/postgres.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,