From c4c696baa75db92cb7208ce85ff94a2b33e17b78 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 24 May 2024 15:57:47 +0100 Subject: [PATCH] Setting internal tables to count as SQL when using SQS. --- packages/server/src/sdk/app/tables/getters.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/sdk/app/tables/getters.ts b/packages/server/src/sdk/app/tables/getters.ts index 414af2c837..c07dcec203 100644 --- a/packages/server/src/sdk/app/tables/getters.ts +++ b/packages/server/src/sdk/app/tables/getters.ts @@ -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,