Skip to content

Commit cb660cf

Browse files
fix: cohort rule exceptions now able to be ignored (#848)
1 parent c574720 commit cb660cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/CohortManager/src/Functions/CohortDistributionServices/CreateCohortDistribution/CreateCohortDistribution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ await HandleErrorResponseAsync($"Unable to add to cohort distribution. As partic
100100
bool excpetionFlagUpdated = await _participantManagementClient.Update(participantMangement);
101101
if (!excpetionFlagUpdated) throw new IOException("Failed to update exception flag");
102102

103-
return;
103+
if (!ignoreParticipantExceptions) return;
104104
}
105105
_logger.LogInformation("Validation has passed or exceptions are ignored, the record with participant id: {ParticipantId} will be added to the database", participantData.ParticipantId);
106106

0 commit comments

Comments
 (0)