mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
switch to queryMetadata
This commit is contained in:
parent
8970d1544b
commit
dbb779ef49
@ -34,10 +34,10 @@ export default class Search extends PureComponent<SearchProps, SearchState> {
|
||||
|
||||
private searchAssets = async () => {
|
||||
const searchQuery = {
|
||||
text: this.searchTerm,
|
||||
offset: 100,
|
||||
page: this.state.page,
|
||||
query: {
|
||||
text: [this.searchTerm],
|
||||
price: [-1, 1]
|
||||
},
|
||||
sort: {
|
||||
@ -45,7 +45,7 @@ export default class Search extends PureComponent<SearchProps, SearchState> {
|
||||
}
|
||||
}
|
||||
|
||||
const assets = await this.context.ocean.aquarius.queryMetadataByText(
|
||||
const assets = await this.context.ocean.aquarius.queryMetadata(
|
||||
searchQuery
|
||||
)
|
||||
this.setState({ assets, isLoading: false })
|
||||
|
Loading…
Reference in New Issue
Block a user