Remove Airtable from data source ui
This commit is contained in:
parent
1096b8c7f0
commit
68719f1dda
|
@ -2,8 +2,16 @@ import { getDefinition, getDefinitions } from "../../integrations"
|
|||
import { BBContext } from "@budibase/types"
|
||||
|
||||
export async function fetch(ctx: BBContext) {
|
||||
ctx.status = 200
|
||||
ctx.body = await getDefinitions()
|
||||
try {
|
||||
const definitions = await getDefinitions()
|
||||
delete definitions.AIRTABLE
|
||||
ctx.status = 200
|
||||
ctx.body = definitions
|
||||
} catch (error) {
|
||||
console.error('Error fetching definitions:', error)
|
||||
ctx.status = 500
|
||||
ctx.body = { error: 'Internal server error' }
|
||||
}
|
||||
}
|
||||
|
||||
export async function find(ctx: BBContext) {
|
||||
|
|
Loading…
Reference in New Issue