From a930a05eb60557f264048675cd2c006602bb648a Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 16 Jun 2021 15:51:33 +0100 Subject: [PATCH] Fixing issue with base postgres integration. --- packages/server/src/integrations/postgres.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/server/src/integrations/postgres.js b/packages/server/src/integrations/postgres.js index 0cbb4ffa4d..21944fb48b 100644 --- a/packages/server/src/integrations/postgres.js +++ b/packages/server/src/integrations/postgres.js @@ -73,7 +73,7 @@ const TYPE_MAP = { async function internalQuery(client, sql) { try { - return await client.query(sql) + return await client.query(sql.sql, sql.bindings) } catch (err) { throw new Error(err) } @@ -174,7 +174,6 @@ class PostgresIntegration extends Sql { } async query(json) { - // TODO: get the schema const operation = this._operation(json).toLowerCase() const input = this._query(json) const response = await internalQuery(this.client, input)