Skip to content

Commit

Permalink
service: fix allocation monitor query
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Oct 30, 2023
1 parent cb1f052 commit ec74a19
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/indexer-service/src/allocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ec74a19

Please sign in to comment.