Rename db to dbCore in more places.
This commit is contained in:
parent
76d22dfffd
commit
5069d3f953
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue