1
0
Fork 0
mirror of synced 2024-08-09 15:17:57 +12:00

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