diff --git a/packages/indexer-cli/src/actions.ts b/packages/indexer-cli/src/actions.ts index 444fe1f0a..f7ccab61c 100644 --- a/packages/indexer-cli/src/actions.ts +++ b/packages/indexer-cli/src/actions.ts @@ -256,8 +256,7 @@ export async function executeApprovedActions( } } `, - [], - [], + undefined, ) .toPromise() diff --git a/packages/indexer-cli/src/cost.ts b/packages/indexer-cli/src/cost.ts index 66fb758e0..984c9ca52 100644 --- a/packages/indexer-cli/src/cost.ts +++ b/packages/indexer-cli/src/cost.ts @@ -141,15 +141,15 @@ export const displayCostModels = ( outputFormat === OutputFormat.Json ? JSON.stringify(costModels, null, 2) : outputFormat === OutputFormat.Yaml - ? yaml.stringify(costModels).trim() - : costModels.length === 0 - ? 'No data' - : table( - [Object.keys(costModels[0]), ...costModels.map(cost => Object.values(cost))], - { - border: getBorderCharacters('norc'), - }, - ).trim() + ? yaml.stringify(costModels).trim() + : costModels.length === 0 + ? 'No data' + : table( + [Object.keys(costModels[0]), ...costModels.map(cost => Object.values(cost))], + { + border: getBorderCharacters('norc'), + }, + ).trim() export const displayCostModel = ( outputFormat: OutputFormat, @@ -158,8 +158,8 @@ export const displayCostModel = ( outputFormat === OutputFormat.Json ? JSON.stringify(cost, null, 2) : outputFormat === OutputFormat.Yaml - ? yaml.stringify(cost).trim() - : table([Object.keys(cost), Object.values(cost)], { + ? yaml.stringify(cost).trim() + : table([Object.keys(cost), Object.values(cost)], { border: getBorderCharacters('norc'), }).trim() @@ -203,8 +203,7 @@ export const costModels = async ( } } `, - [], - [], + undefined, ) .toPromise() diff --git a/packages/indexer-common/src/graph-node.ts b/packages/indexer-common/src/graph-node.ts index 108ba2f57..ca0995b12 100644 --- a/packages/indexer-common/src/graph-node.ts +++ b/packages/indexer-common/src/graph-node.ts @@ -156,7 +156,7 @@ export class GraphNode { const result = await this.status .query( gql` - query indexingStatuses { + { indexingStatuses { subgraphDeployment: subgraph node @@ -164,8 +164,7 @@ export class GraphNode { } } `, - [], - [], + undefined, ) .toPromise() @@ -226,8 +225,7 @@ export class GraphNode { } } `, - [], - [], + undefined, ) .toPromise()