switching metadataSearch to fullSearch.

This commit is contained in:
mike12345567 2023-02-20 11:29:43 +00:00
parent 70e525b928
commit b60013cbb8
2 changed files with 7 additions and 4 deletions

View File

@ -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)
} }

View File

@ -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 {}