Fix types
This commit is contained in:
parent
9c6e880479
commit
d248c7b6b8
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue