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<{
|
export async function search(options: SearchParams): Promise<{
|
||||||
rows: any[]
|
rows: any[]
|
||||||
hasNextPage?: boolean
|
hasNextPage?: boolean
|
||||||
bookmark?: number | string | null
|
bookmark?: number | null
|
||||||
}> {
|
}> {
|
||||||
return pickApi(options.tableId).search(options)
|
return pickApi(options.tableId).search(options)
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,11 +59,7 @@ export async function search(options: SearchParams) {
|
||||||
if (paginate) {
|
if (paginate) {
|
||||||
response = await paginatedSearch(query, params)
|
response = await paginatedSearch(query, params)
|
||||||
} else {
|
} else {
|
||||||
response = {
|
response = await fullSearch(query, params)
|
||||||
...(await fullSearch(query, params)),
|
|
||||||
hasNextPage: false,
|
|
||||||
bookmark: null,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enrich search results with relationships
|
// Enrich search results with relationships
|
||||||
|
|
Loading…
Reference in New Issue