Rename db to dbCore in more places.

This commit is contained in:
Sam Rose 2024-07-10 11:37:37 +01:00
parent 76d22dfffd
commit 5069d3f953
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -324,7 +324,7 @@ class TableSaveFunctions {
importRows: this.importRows,
user: this.user,
})
if (db.isSqsEnabledForTenant()) {
if (dbCore.isSqsEnabledForTenant()) {
await sdk.tables.sqs.addTable(table)
}
return table

View File

@ -16,7 +16,7 @@ import { ExportRowsParams, ExportRowsResult } from "./search/types"
import { dataFilters } from "@budibase/shared-core"
import sdk from "../../index"
import { searchInputMapping } from "./search/utils"
import { db } from "@budibase/backend-core"
import { db as dbCore } from "@budibase/backend-core"
export { isValidFilter } from "../../../integrations/utils"
@ -115,7 +115,7 @@ export async function search(
if (isExternalTable) {
return external.search(options, table)
} else if (db.isSqsEnabledForTenant()) {
} else if (dbCore.isSqsEnabledForTenant()) {
return sqs.search(options, table)
} else {
return internal.search(options, table)

View File

@ -1,4 +1,4 @@
import { context, db, env } from "@budibase/backend-core"
import { context, db as dbCore, env } from "@budibase/backend-core"
import { getTableParams } from "../../../db/utils"
import {
breakExternalTableId,
@ -33,7 +33,7 @@ export function processTable(table: Table): Table {
sourceId: table.sourceId || INTERNAL_TABLE_SOURCE_ID,
sourceType: TableSourceType.INTERNAL,
}
if (db.isSqsEnabledForTenant()) {
if (dbCore.isSqsEnabledForTenant()) {
processed.sql = !!env.SQS_SEARCH_ENABLE
}
return processed