Skip to content

Commit

Permalink
common: account for error property named 'errors' and 'error'
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Oct 9, 2023
1 parent cd4ae95 commit 6689e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/indexer-common/src/subgraphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ export class SubgraphFreshnessChecker {
])

// Return it early if query results contains errors
if (subgraphQueryResult.errors) {
if (subgraphQueryResult.errors && subgraphQueryResult.error) {
return subgraphQueryResult
}

Expand Down

0 comments on commit 6689e8b

Please sign in to comment.