Setting internal tables to count as SQL when using SQS.

This commit is contained in:
mike12345567 2024-05-24 15:57:47 +01:00
parent 7a7f7185c9
commit c4c696baa7
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import {
} from "@budibase/types"
import datasources from "../datasources"
import sdk from "../../../sdk"
import env from "../../../environment"
export function processTable(table: Table): Table {
if (!table) {
@ -29,6 +30,7 @@ export function processTable(table: Table): Table {
} else {
return {
...table,
sql: !!env.SQS_SEARCH_ENABLE,
type: "table",
sourceId: table.sourceId || INTERNAL_TABLE_SOURCE_ID,
sourceType: TableSourceType.INTERNAL,