1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

Remove price.isConsumable from elastic query (#639)

* price.isConsumable removed from query
* subgraph query updated

Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
This commit is contained in:
claudiaHash 2021-06-04 14:23:18 +03:00 committed by GitHub
parent 88663d812a
commit f73191ef1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -111,7 +111,7 @@ export default function HomePage(): ReactElement {
offset: 15, offset: 15,
query: { query: {
query_string: { query_string: {
query: `(${results}) AND -isInPurgatory:true AND price.isConsumable:true`, query: `(${results}) AND -isInPurgatory:true`,
fields: ['dataToken'] fields: ['dataToken']
} }
} }

View File

@ -88,13 +88,13 @@ const PreviousOrderQuery = gql`
` `
const HighestLiquidityAssets = gql` const HighestLiquidityAssets = gql`
query HighestLiquidiyAssets { query HighestLiquidiyAssets {
pools(orderBy: valueLocked, orderDirection: desc, first: 15) { pools(
where: { datatokenReserve_gte: 1 }
orderBy: valueLocked
orderDirection: desc
first: 15
) {
id id
consumePrice
spotPrice
tx
symbol
name
datatokenAddress datatokenAddress
valueLocked valueLocked
} }