Removing validation endpoint for external tables, always valid.
This commit is contained in:
parent
e10943e6f8
commit
e5ba70e7b4
1 changed files with 9 additions and 4 deletions
|
@ -133,10 +133,15 @@ export async function search(ctx: any) {
|
||||||
|
|
||||||
export async function validate(ctx: Ctx) {
|
export async function validate(ctx: Ctx) {
|
||||||
const tableId = getTableId(ctx)
|
const tableId = getTableId(ctx)
|
||||||
|
// external tables are hard to validate currently
|
||||||
|
if (isExternalTable(tableId)) {
|
||||||
|
ctx.body = { valid: true }
|
||||||
|
} else {
|
||||||
ctx.body = await utils.validate({
|
ctx.body = await utils.validate({
|
||||||
row: ctx.request.body,
|
row: ctx.request.body,
|
||||||
tableId,
|
tableId,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchEnrichedRow(ctx: any) {
|
export async function fetchEnrichedRow(ctx: any) {
|
||||||
|
|
Loading…
Reference in a new issue