From c7bc48f3ac70c9844e43b825c1c08efd97cb8590 Mon Sep 17 00:00:00 2001 From: Soanvig Date: Mon, 2 May 2022 12:26:56 +0200 Subject: [PATCH] fix(issuer-irec-api): fix checking issuance request status for approval --- .../cron/check-certification-request-state.task.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/traceability/issuer-irec-api/src/pods/certification-request/cron/check-certification-request-state.task.ts b/packages/traceability/issuer-irec-api/src/pods/certification-request/cron/check-certification-request-state.task.ts index 92dde77c1a..afdc8a6ee6 100644 --- a/packages/traceability/issuer-irec-api/src/pods/certification-request/cron/check-certification-request-state.task.ts +++ b/packages/traceability/issuer-irec-api/src/pods/certification-request/cron/check-certification-request-state.task.ts @@ -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) );