From f73191ef1ab81b20599c035b8bd4dc24ffb2da0b Mon Sep 17 00:00:00 2001 From: claudiaHash <49017601+claudiaHash@users.noreply.github.com> Date: Fri, 4 Jun 2021 14:23:18 +0300 Subject: [PATCH] Remove price.isConsumable from elastic query (#639) * price.isConsumable removed from query * subgraph query updated Co-authored-by: claudia.holhos --- src/components/pages/Home.tsx | 2 +- src/utils/subgraph.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/pages/Home.tsx b/src/components/pages/Home.tsx index dc801e637..f3a61d35f 100644 --- a/src/components/pages/Home.tsx +++ b/src/components/pages/Home.tsx @@ -111,7 +111,7 @@ export default function HomePage(): ReactElement { offset: 15, query: { query_string: { - query: `(${results}) AND -isInPurgatory:true AND price.isConsumable:true`, + query: `(${results}) AND -isInPurgatory:true`, fields: ['dataToken'] } } diff --git a/src/utils/subgraph.ts b/src/utils/subgraph.ts index d48f3336e..76cc04b86 100644 --- a/src/utils/subgraph.ts +++ b/src/utils/subgraph.ts @@ -88,13 +88,13 @@ const PreviousOrderQuery = gql` ` const HighestLiquidityAssets = gql` query HighestLiquidiyAssets { - pools(orderBy: valueLocked, orderDirection: desc, first: 15) { + pools( + where: { datatokenReserve_gte: 1 } + orderBy: valueLocked + orderDirection: desc + first: 15 + ) { id - consumePrice - spotPrice - tx - symbol - name datatokenAddress valueLocked }