Skip to content

Commit

Permalink
ECER-3952: inactive certification conditions filtered out in public l…
Browse files Browse the repository at this point in the history
…ookup
  • Loading branch information
farzadnadiri committed Jan 2, 2025
1 parent f9513c0 commit 88baeb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public CertificationRepositoryMapper()
.ForMember(d => d.IneligibleReference, opts => opts.MapFrom(s => s.ecer_IneligibleReference))
.ForMember(d => d.Levels, opts => opts.MapFrom(s => s.ecer_certifiedlevel_CertificateId))
.ForMember(d => d.Files, opts => opts.MapFrom(s => s.ecer_documenturl_CertificateId))
.ForMember(d => d.CertificateConditions, opts => opts.MapFrom(s => s.ecer_certificate_Registrantid.ecer_certificateconditions_Registrantid));
.ForMember(d => d.CertificateConditions, opts => opts.MapFrom(s => s.ecer_certificate_Registrantid.ecer_certificateconditions_Registrantid.Where(cc => cc.StatusCode == ecer_CertificateConditions_StatusCode.Active)));

CreateMap<ecer_CertificateConditions, CertificateCondition>(MemberList.Destination)
.ForMember(d => d.Id, opts => opts.MapFrom(s => s.Id))
Expand Down

0 comments on commit 88baeb6

Please sign in to comment.