From b9fdc74b51c49f5f5af2b867c9e6632a5fbed40f Mon Sep 17 00:00:00 2001 From: tilacog Date: Mon, 9 Oct 2023 17:29:36 -0300 Subject: [PATCH] common: account for error property named 'errors' and 'error' --- packages/indexer-common/src/subgraphs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/indexer-common/src/subgraphs.ts b/packages/indexer-common/src/subgraphs.ts index 5ff375d41..53cf68bef 100644 --- a/packages/indexer-common/src/subgraphs.ts +++ b/packages/indexer-common/src/subgraphs.ts @@ -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 }