From e5df157927cba2d08b9bea65bf2b64d43150ca03 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 29 Apr 2022 10:47:42 +0100 Subject: [PATCH] adding close to buildSchema --- packages/server/src/integrations/postgres.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/integrations/postgres.ts b/packages/server/src/integrations/postgres.ts index d38b657566..6301f4dcaf 100644 --- a/packages/server/src/integrations/postgres.ts +++ b/packages/server/src/integrations/postgres.ts @@ -204,6 +204,8 @@ module PostgresModule { } } catch (err) { tableKeys = {} + } finally { + await this.client.close() } const columnsResponse = await this.client.query(this.COLUMNS_SQL)