From e6ad3a4719aeb92668ed8e55864d16f63fa330ac Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 14 Jun 2023 17:17:29 +0100 Subject: [PATCH] Type pg --- packages/server/src/integrations/postgres.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/integrations/postgres.ts b/packages/server/src/integrations/postgres.ts index 33ecf45982..9b2f94db8f 100644 --- a/packages/server/src/integrations/postgres.ts +++ b/packages/server/src/integrations/postgres.ts @@ -20,7 +20,7 @@ import Sql from "./base/sql" import { PostgresColumn } from "./base/types" import { escapeDangerousCharacters } from "../utilities" -import { Client, types } from "pg" +import { Client, ClientConfig, types } from "pg" // Return "date" and "timestamp" types as plain strings. // This lets us reference the original stored timezone. @@ -144,7 +144,7 @@ class PostgresIntegration extends Sql implements DatasourcePlus { super(SqlClient.POSTGRES) this.config = config - let newConfig = { + let newConfig: ClientConfig = { ...this.config, ssl: this.config.ssl ? {