Skip to content

Commit

Permalink
Fix assigning TrnLookupStatus in Elevate process
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Feb 12, 2024
1 parent eb54288 commit c044997
Show file tree
Hide file tree
Showing 3 changed files with 1,036 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@ public async Task ElevateTrnVerificationLevel(Guid userId, string trn, string na
changes |= UserUpdatedEventChanges.NationalInsuranceNumber;
}

if (user.TrnLookupStatus != TrnLookupStatus.Found)
{
user.TrnLookupStatus = TrnLookupStatus.Found;
changes |= UserUpdatedEventChanges.TrnLookupStatus;
}

_dbContext.AddEvent(new UserUpdatedEvent()
{
Changes = changes,
Expand Down
Loading

0 comments on commit c044997

Please sign in to comment.