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 { db as dbCore, context, SearchParams } from "@budibase/backend-core"
|
||||||
import { SearchFilters } from "@budibase/types"
|
import { SearchFilters, Row } from "@budibase/types"
|
||||||
|
|
||||||
export async function paginatedSearch(
|
export async function paginatedSearch(
|
||||||
query: SearchFilters,
|
query: SearchFilters,
|
||||||
params: SearchParams
|
params: SearchParams<Row>
|
||||||
) {
|
) {
|
||||||
const appId = context.getAppId()
|
const appId = context.getAppId()
|
||||||
return dbCore.paginatedSearch(
|
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()
|
const appId = context.getAppId()
|
||||||
return dbCore.fullSearch(appId!, dbCore.SearchIndexes.ROWS, query, params)
|
return dbCore.fullSearch(appId!, dbCore.SearchIndexes.ROWS, query, params)
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ export interface AuditLogSearchParams {
|
||||||
event?: Event[]
|
event?: Event[]
|
||||||
startDate?: string
|
startDate?: string
|
||||||
endDate?: string
|
endDate?: string
|
||||||
metadataSearch?: string
|
fullSearch?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DownloadAuditLogsRequest extends AuditLogSearchParams {}
|
export interface DownloadAuditLogsRequest extends AuditLogSearchParams {}
|
||||||
|
|
Loading…
Reference in New Issue