diff --git a/packages/server/src/api/controllers/row/utils.js b/packages/server/src/api/controllers/row/utils.js index 06c2e3faf8..16c48181d1 100644 --- a/packages/server/src/api/controllers/row/utils.js +++ b/packages/server/src/api/controllers/row/utils.js @@ -18,8 +18,8 @@ validateJs.extend(validateJs.validators.datetime, { exports.makeExternalQuery = async (appId, json) => { const datasourceId = json.endpoint.datasourceId - const database = new CouchDB(appId) - const datasource = await database.get(datasourceId) + const db = new CouchDB(appId) + const datasource = await db.get(datasourceId) const Integration = integrations[datasource.source] // query is the opinionated function if (Integration.prototype.query) { diff --git a/packages/server/src/integrations/postgres.js b/packages/server/src/integrations/postgres.js index 0cbb4ffa4d..2e78b6b116 100644 --- a/packages/server/src/integrations/postgres.js +++ b/packages/server/src/integrations/postgres.js @@ -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)