1
0
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:
Matthias Kretschmann 2019-04-04 12:36:49 +02:00
parent 8970d1544b
commit dbb779ef49
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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 })