switching metadataSearch to fullSearch.
This commit is contained in:
parent
70e525b928
commit
b60013cbb8
|
@ -1,9 +1,9 @@
|
|||
import { db as dbCore, context, SearchParams } from "@budibase/backend-core"
|
||||
import { SearchFilters } from "@budibase/types"
|
||||
import { SearchFilters, Row } from "@budibase/types"
|
||||
|
||||
export async function paginatedSearch(
|
||||
query: SearchFilters,
|
||||
params: SearchParams
|
||||
params: SearchParams<Row>
|
||||
) {
|
||||
const appId = context.getAppId()
|
||||
return dbCore.paginatedSearch(
|
||||
|
@ -14,7 +14,10 @@ export async function paginatedSearch(
|
|||
)
|
||||
}
|
||||
|
||||
export async function fullSearch(query: SearchFilters, params: SearchParams) {
|
||||
export async function fullSearch(
|
||||
query: SearchFilters,
|
||||
params: SearchParams<Row>
|
||||
) {
|
||||
const appId = context.getAppId()
|
||||
return dbCore.fullSearch(appId!, dbCore.SearchIndexes.ROWS, query, params)
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ export interface AuditLogSearchParams {
|
|||
event?: Event[]
|
||||
startDate?: string
|
||||
endDate?: string
|
||||
metadataSearch?: string
|
||||
fullSearch?: string
|
||||
}
|
||||
|
||||
export interface DownloadAuditLogsRequest extends AuditLogSearchParams {}
|
||||
|
|
Loading…
Reference in New Issue