Fix types

This commit is contained in:
Adria Navarro 2023-09-13 15:26:29 +02:00
parent 9c6e880479
commit d248c7b6b8
2 changed files with 2 additions and 6 deletions

View File

@ -20,7 +20,7 @@ function pickApi(tableId: any) {
export async function search(options: SearchParams): Promise<{
rows: any[]
hasNextPage?: boolean
bookmark?: number | string | null
bookmark?: number | null
}> {
return pickApi(options.tableId).search(options)
}

View File

@ -59,11 +59,7 @@ export async function search(options: SearchParams) {
if (paginate) {
response = await paginatedSearch(query, params)
} else {
response = {
...(await fullSearch(query, params)),
hasNextPage: false,
bookmark: null,
}
response = await fullSearch(query, params)
}
// Enrich search results with relationships