From dbb779ef4957097511b8394bcc4c2688aa82d137 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 4 Apr 2019 12:36:49 +0200 Subject: [PATCH] switch to queryMetadata --- client/src/routes/Search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 })