Skip to content

Commit

Permalink
Fix error from unknown matched attribute (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Nov 20, 2024
1 parent 0b25e4d commit f0dea49
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public record FindPotentialDuplicateContactsResult
public required string? StatedFirstName { get; init; }
public required string? StatedMiddleName { get; init; }
public required string? StatedLastName { get; init; }
public required string? PreviousLastName { get; init; }
public required DateOnly? DateOfBirth { get; init; }
public required string? NationalInsuranceNumber { get; init; }
public required string? EmailAddress { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ string GetDescription()
Contact.Fields.FirstName => $" - First name: '{duplicate.FirstName}'",
Contact.Fields.MiddleName => $" - Middle name: '{duplicate.MiddleName}'",
Contact.Fields.LastName => $" - Last name: '{duplicate.LastName}'",
Contact.Fields.dfeta_PreviousLastName => $" - Previous last name: '{duplicate.PreviousLastName}'",
Contact.Fields.BirthDate => $" - Date of birth: '{duplicate.DateOfBirth:dd/MM/yyyy}'",
Contact.Fields.dfeta_NINumber => $" - National Insurance number: '{duplicate.NationalInsuranceNumber}'",
Contact.Fields.EMailAddress1 => $" - Email address: '{duplicate.EmailAddress}'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public async Task<FindPotentialDuplicateContactsResult[]> ExecuteAsync(FindPoten
StatedFirstName = match.dfeta_StatedFirstName,
StatedMiddleName = match.dfeta_StatedMiddleName,
StatedLastName = match.dfeta_StatedLastName,
PreviousLastName = match.dfeta_PreviousLastName,
DateOfBirth = match.BirthDate.ToDateOnlyWithDqtBstFix(isLocalTime: false),
NationalInsuranceNumber = !string.IsNullOrEmpty(match.dfeta_NINumber) ? match.dfeta_NINumber : null,
EmailAddress = match.EMailAddress1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ await _dataScope.OrganizationService.CreateAsync(new Contact()
StatedFirstName = firstName,
StatedMiddleName = middleName,
StatedLastName = lastName,
PreviousLastName = null,
DateOfBirth = dateOfBirth,
EmailAddress = email,
NationalInsuranceNumber = nino
Expand Down

0 comments on commit f0dea49

Please sign in to comment.