Skip to content

Commit

Permalink
fix(issuer-irec-api): fix checking issuance request status for approval
Browse files Browse the repository at this point in the history
  • Loading branch information
soanvig committed May 2, 2022
1 parent 44bb904 commit c7bc48f
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 c7bc48f

Please sign in to comment.