mirror of
https://github.com/oceanprotocol/react.git
synced 2025-01-23 00:18:12 +01:00
use searchQuery in getPublishedList
This commit is contained in:
parent
4480a92270
commit
32e6a32bb6
@ -45,7 +45,7 @@ function useSearch(): UseSearch {
|
||||
setSearchError(undefined)
|
||||
|
||||
try {
|
||||
const searchQuery = {
|
||||
const query = {
|
||||
page,
|
||||
offset,
|
||||
query: {
|
||||
@ -55,8 +55,8 @@ function useSearch(): UseSearch {
|
||||
created: -1
|
||||
}
|
||||
} as SearchQuery
|
||||
const aquarius = new Aquarius(config.aquariusUri as string, Logger)
|
||||
return await aquarius.queryMetadata(searchQuery)
|
||||
|
||||
return await searchQuery(query)
|
||||
} catch (error) {
|
||||
setSearchError(error.message)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user