Skip to content

Commit d38e0d8

Browse files
fix: Search Category Filtering fix (#1799)
fix: Search Category filtering fix
1 parent a4b1ae1 commit d38e0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/CohortManager/src/Functions/Shared/Data/Database/ValidationExceptionData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ private static List<ValidationException> SortExceptions(SortOrder? sortOrder, IE
347347

348348
private async Task<List<ValidationException>> GetValidationExceptionsByNhsNumber(string nhsNumber)
349349
{
350-
var exceptions = await _validationExceptionDataServiceClient.GetByFilter(x => x.NhsNumber == nhsNumber && x.Category == (int)ExceptionCategory.NBO);
350+
var exceptions = await _validationExceptionDataServiceClient.GetByFilter(x => x.NhsNumber == nhsNumber && x.Category.HasValue && x.Category.Value == (int)ExceptionCategory.NBO);
351351
if (exceptions == null || !exceptions.Any())
352352
{
353353
return [];

0 commit comments

Comments
 (0)