From 184b83ed67c9f547c383fac11fad38dd1eaa9d41 Mon Sep 17 00:00:00 2001 From: AnuragNagpure Date: Thu, 8 Feb 2024 16:12:56 +0530 Subject: [PATCH] Review changes for checking status id added --- .../PortalBackend.DBAccess/Repositories/StaticDataRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portalbackend/PortalBackend.DBAccess/Repositories/StaticDataRepository.cs b/src/portalbackend/PortalBackend.DBAccess/Repositories/StaticDataRepository.cs index 0e0613030c..477bfc8630 100644 --- a/src/portalbackend/PortalBackend.DBAccess/Repositories/StaticDataRepository.cs +++ b/src/portalbackend/PortalBackend.DBAccess/Repositories/StaticDataRepository.cs @@ -109,7 +109,7 @@ public IAsyncEnumerable GetCertificateTypes() => ( certificate.Id, certificate.CompanyCertificateTypeDescriptions - .Where(y => y.CompanyCertificateTypeId == certificate.Id) + .Where(y => y.CompanyCertificateType.CompanyCertificateTypeAssignedStatus.CompanyCertificateTypeStatusId == CompanyCertificateTypeStatusId.ACTIVE) .Select(x => new CertificateTypeDescription(x.LanguageShortName, x.Description)) )) .AsAsyncEnumerable();