diff --git a/client/src/routes/Search.tsx b/client/src/routes/Search.tsx index f5143af..d882c14 100644 --- a/client/src/routes/Search.tsx +++ b/client/src/routes/Search.tsx @@ -34,10 +34,10 @@ export default class Search extends PureComponent { 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 { } } - const assets = await this.context.ocean.aquarius.queryMetadataByText( + const assets = await this.context.ocean.aquarius.queryMetadata( searchQuery ) this.setState({ assets, isLoading: false })