Skip to content

Commit

Permalink
Merge pull request #3485 from OriginTrail/fix/protocol-missing-await
Browse files Browse the repository at this point in the history
Add mising await
  • Loading branch information
Mihajlo-Pavlovic authored Dec 11, 2024
2 parents 095400f + 722668e commit 7d64076
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/commands/protocols/common/protocol-request-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,12 @@ class ProtocolRequestCommand extends ProtocolMessageCommand {

async execute(command) {
const { operationId, blockchain } = command.data;
await this.operationIdService.emitChangeEvent(
this.operationStartEvent,
operationId,
blockchain,
);
const result = this.executeProtocolMessageCommand(
this.operationIdService.emitChangeEvent(this.operationStartEvent, operationId, blockchain);
const result = await this.executeProtocolMessageCommand(
command,
NETWORK_MESSAGE_TYPES.REQUESTS.PROTOCOL_REQUEST,
);
await this.operationIdService.emitChangeEvent(
this.operationEndEvent,
operationId,
blockchain,
);
this.operationIdService.emitChangeEvent(this.operationEndEvent, operationId, blockchain);

return result;
}
Expand Down

0 comments on commit 7d64076

Please sign in to comment.