Skip to content

Commit

Permalink
Merge pull request #3573 from OriginTrail/fix/finality-request-command
Browse files Browse the repository at this point in the history
Fix finality request command
  • Loading branch information
Mihajlo-Pavlovic authored Dec 20, 2024
2 parents eac64b4 + 0573d73 commit 6c4cee3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,20 @@ class FinalityRequestCommand extends ProtocolRequestCommand {
}

async handleAck(command) {
const { operationId, blockchain } = command.data;
await this.operationIdService.updateOperationIdStatus(
command.operationId,
command.blockchain,
operationId,
blockchain,
OPERATION_ID_STATUS.COMPLETED,
);
return ProtocolRequestCommand.empty();
}

async handleNack(command, responseData) {
const { operationId, blockchain } = command.data;
await this.operationIdService.updateOperationIdStatus(
command.operationId,
command.blockchain,
operationId,
blockchain,
OPERATION_ID_STATUS.COMPLETED,
);
await this.markResponseAsFailed(
Expand Down

0 comments on commit 6c4cee3

Please sign in to comment.