File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
application/CohortManager/src/Functions/Shared/Data/Database Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ private async Task<List<CohortDistribution>> GetSupersededParticipants(int rowCo
4040
4141 // Get distinct non-null superseded NHS numbers
4242 var supersededNhsNumbers = supersededParticipants
43- . Select ( sp => sp . SupersededNHSNumber )
44- . Where ( nhs => nhs . HasValue )
45- . Select ( nhs => nhs . Value )
43+ . Select ( sp => sp . SupersededNHSNumber . Value )
4644 . Distinct ( )
4745 . ToList ( ) ;
4846
@@ -56,7 +54,7 @@ private async Task<List<CohortDistribution>> GetSupersededParticipants(int rowCo
5654 }
5755
5856 // Filter superseded participants that have matching records
59- var filteredParticipants = supersededParticipants . ToList ( )
57+ var filteredParticipants = supersededParticipants
6058 . Where ( sp => matchingParticipants . Any ( mp => mp . NHSNumber == sp . SupersededNHSNumber ) )
6159 . ToList ( ) ;
6260
You can’t perform that action at this time.
0 commit comments