From ec74a192a628062d13e92967bb0204972fe2d792 Mon Sep 17 00:00:00 2001 From: tilacog Date: Tue, 24 Oct 2023 13:47:42 -0300 Subject: [PATCH] service: fix allocation monitor query --- packages/indexer-service/src/allocations.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/indexer-service/src/allocations.ts b/packages/indexer-service/src/allocations.ts index 2e1a48c4d..321e4a525 100644 --- a/packages/indexer-service/src/allocations.ts +++ b/packages/indexer-service/src/allocations.ts @@ -38,16 +38,13 @@ export const monitorEligibleAllocations = ({ logger.debug('Refresh eligible allocations') try { - const currentEpochResult = await networkSubgraph.checkedQuery( - gql` - query { - graphNetwork(id: "1") { - currentEpoch - } + const currentEpochResult = await networkSubgraph.checkedQuery(gql` + query { + graphNetwork(id: "1") { + currentEpoch } } - `, - ) + `) if (currentEpochResult.error) { throw currentEpochResult.error }