minor tidy up
This commit is contained in:
parent
ba09f2df4b
commit
09cacbbb6e
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue