Skip to content

Commit

Permalink
Merge pull request #3352 from energywebfoundation/fix/irec-check-issu…
Browse files Browse the repository at this point in the history
…ance-status

fix(issuer-irec-api): fix checking issuance request status for approval
  • Loading branch information
soanvig authored May 2, 2022
2 parents 44bb904 + c7bc48f commit 43799d4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export class CheckCertificationRequestStateTask {
return;
}

if (irecIssue.status === IssuanceStatus.Approved) {
if (
irecIssue.status === IssuanceStatus.Approved ||
irecIssue.status === IssuanceStatus.Issued
) {
await this.commandBus.execute(
new ApproveCertificationRequestCommand(certificateRequest.id)
);
Expand Down

0 comments on commit 43799d4

Please sign in to comment.