From 60bbc8a00eedeb2c770b67a74203928050524a2f Mon Sep 17 00:00:00 2001 From: Daniel Werner Date: Mon, 13 Jan 2025 13:51:51 -0800 Subject: [PATCH] common,cli: actions fix, typo fixup --- packages/indexer-cli/src/commands/indexer/actions/queue.ts | 2 +- packages/indexer-common/src/indexer-management/actions.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/indexer-cli/src/commands/indexer/actions/queue.ts b/packages/indexer-cli/src/commands/indexer/actions/queue.ts index f334b40ea..ef1d74ddb 100644 --- a/packages/indexer-cli/src/commands/indexer/actions/queue.ts +++ b/packages/indexer-cli/src/commands/indexer/actions/queue.ts @@ -28,7 +28,7 @@ ${chalk.bold( ${chalk.dim('Options:')} - -h, --help Show usage informatio + -h, --help Show usage information -n, --network [Required] The protocol network for this action (mainnet, arbitrum-one, sepolia, arbitrum-sepolia) -o, --output table|json|yaml Choose the output format: table (default), JSON, or YAML -s, --source Specify the source of the action decision diff --git a/packages/indexer-common/src/indexer-management/actions.ts b/packages/indexer-common/src/indexer-management/actions.ts index 95637e5ab..237dd718f 100644 --- a/packages/indexer-common/src/indexer-management/actions.ts +++ b/packages/indexer-common/src/indexer-management/actions.ts @@ -275,6 +275,8 @@ export class ActionManager { try { this.executeBatchActionsPromise = this.executeApprovedActionsInner(network) updatedActions = await this.executeBatchActionsPromise + } catch (error) { + this.logger.error(`Failed to execute batch of approved actions -> ${error}`) } finally { this.executeBatchActionsPromise = undefined } @@ -340,7 +342,7 @@ export class ActionManager { } // mark all approved actions as PENDING, this serves as a lock on other processing of them await this.markActions(approvedActions, transaction, ActionStatus.PENDING) - return prioritizedActions + return approvedActions }, )