1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00

Fixing issue with base postgres integration.

This commit is contained in:
mike12345567 2021-06-16 15:51:33 +01:00
parent aabbbdecfe
commit 5244db6f1c

View file

@ -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)