This commit is contained in:
mike12345567 2021-07-03 11:16:29 +01:00
parent e170d9d146
commit 2e18abd342
2 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,12 @@ import {
PaginationJson, PaginationJson,
RelationshipsJson, RelationshipsJson,
} from "../../../definitions/datasource" } from "../../../definitions/datasource"
import {Row, Table, FieldSchema, Datasource} from "../../../definitions/common" import {
Row,
Table,
FieldSchema,
Datasource,
} from "../../../definitions/common"
import { import {
breakRowIdField, breakRowIdField,
generateRowIdField, generateRowIdField,

View File

@ -3,7 +3,6 @@ const {
SortDirection, SortDirection,
FieldTypes, FieldTypes,
} = require("../../../constants") } = require("../../../constants")
const { getAllExternalTables } = require("../table/utils")
const { const {
breakExternalTableId, breakExternalTableId,
breakRowIdField, breakRowIdField,
@ -12,7 +11,9 @@ const ExternalRequest = require("./ExternalRequest")
const CouchDB = require("../../../db") const CouchDB = require("../../../db")
async function handleRequest(appId, operation, tableId, opts = {}) { async function handleRequest(appId, operation, tableId, opts = {}) {
return new ExternalRequest(appId, operation, tableId, opts.datasource).run(opts) return new ExternalRequest(appId, operation, tableId, opts.datasource).run(
opts
)
} }
exports.patch = async ctx => { exports.patch = async ctx => {