Skip to content

Commit 5f4b79e

Browse files
committed
common,cli: actions fix, typo fixup
1 parent 40ab873 commit 5f4b79e

File tree

2 files changed

+4
-2
lines changed
  • packages
    • indexer-cli/src/commands/indexer/actions
    • indexer-common/src/indexer-management

2 files changed

+4
-2
lines changed

packages/indexer-cli/src/commands/indexer/actions/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ${chalk.bold(
2828
2929
${chalk.dim('Options:')}
3030
31-
-h, --help Show usage informatio
31+
-h, --help Show usage information
3232
-n, --network <STRING> [Required] The protocol network for this action (mainnet, arbitrum-one, sepolia, arbitrum-sepolia)
3333
-o, --output table|json|yaml Choose the output format: table (default), JSON, or YAML
3434
-s, --source <STRING> Specify the source of the action decision

packages/indexer-common/src/indexer-management/actions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ export class ActionManager {
275275
try {
276276
this.executeBatchActionsPromise = this.executeApprovedActionsInner(network)
277277
updatedActions = await this.executeBatchActionsPromise
278+
} catch (error) {
279+
this.logger.error(`Failed to execute batch of approved actions -> ${error}`)
278280
} finally {
279281
this.executeBatchActionsPromise = undefined
280282
}
@@ -340,7 +342,7 @@ export class ActionManager {
340342
}
341343
// mark all approved actions as PENDING, this serves as a lock on other processing of them
342344
await this.markActions(approvedActions, transaction, ActionStatus.PENDING)
343-
return prioritizedActions
345+
return approvedActions
344346
},
345347
)
346348

0 commit comments

Comments
 (0)