Fix
This commit is contained in:
parent
6e1cd6eb01
commit
7d8238ec98
|
@ -69,6 +69,8 @@ export async function search(
|
||||||
throw new Error(`Must supply either a view ID or a table ID`)
|
throw new Error(`Must supply either a view ID or a table ID`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isExternalTable = isExternalTableID(table._id!)
|
||||||
|
|
||||||
if (options.query) {
|
if (options.query) {
|
||||||
const visibleFields = (
|
const visibleFields = (
|
||||||
options.fields || Object.keys(table.schema)
|
options.fields || Object.keys(table.schema)
|
||||||
|
@ -142,7 +144,6 @@ export async function search(
|
||||||
|
|
||||||
options = searchInputMapping(table, options)
|
options = searchInputMapping(table, options)
|
||||||
|
|
||||||
const isExternalTable = isExternalTableID(table._id!)
|
|
||||||
let result: SearchResponse<Row>
|
let result: SearchResponse<Row>
|
||||||
if (isExternalTable) {
|
if (isExternalTable) {
|
||||||
span?.addTags({ searchType: "external" })
|
span?.addTags({ searchType: "external" })
|
||||||
|
|
Loading…
Reference in New Issue