1
0
Fork 0
mirror of synced 2024-08-14 01:21:41 +12:00

Removing validation endpoint for external tables, always valid.

This commit is contained in:
mike12345567 2023-03-29 12:16:14 +01:00
parent e10943e6f8
commit e5ba70e7b4

View file

@ -133,11 +133,16 @@ export async function search(ctx: any) {
export async function validate(ctx: 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({
row: ctx.request.body,
tableId,
})
}
}
export async function fetchEnrichedRow(ctx: any) {
const tableId = getTableId(ctx)