From b60013cbb86f9b4c9207fddc123dfcb250d3b11a Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 20 Feb 2023 11:29:43 +0000 Subject: [PATCH] switching metadataSearch to fullSearch. --- .../server/src/api/controllers/row/internalSearch.ts | 9 ++++++--- packages/types/src/api/web/global/auditLogs.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/server/src/api/controllers/row/internalSearch.ts b/packages/server/src/api/controllers/row/internalSearch.ts index f2abc91b14..bdb9379334 100644 --- a/packages/server/src/api/controllers/row/internalSearch.ts +++ b/packages/server/src/api/controllers/row/internalSearch.ts @@ -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 ) { 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 +) { const appId = context.getAppId() return dbCore.fullSearch(appId!, dbCore.SearchIndexes.ROWS, query, params) } diff --git a/packages/types/src/api/web/global/auditLogs.ts b/packages/types/src/api/web/global/auditLogs.ts index 5a0cf4f398..dbd22b2bf2 100644 --- a/packages/types/src/api/web/global/auditLogs.ts +++ b/packages/types/src/api/web/global/auditLogs.ts @@ -8,7 +8,7 @@ export interface AuditLogSearchParams { event?: Event[] startDate?: string endDate?: string - metadataSearch?: string + fullSearch?: string } export interface DownloadAuditLogsRequest extends AuditLogSearchParams {}