Skip to content

Commit c167cf1

Browse files
committed
TD-6335
1 parent 6575533 commit c167cf1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

LearningHub.Nhs.UserApi.Services/ElfhUserService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public async Task RecordSuccessfulSigninAsync(int id, CancellationToken token =
237237

238238
await this.elfhUserRepository.UpdateAsync(id, user);
239239

240-
await this.InvalidateElfhUserCacheAsync(user.Id, user.UserName, token);
240+
// await this.InvalidateElfhUserCacheAsync(user.Id, user.UserName, token);
241241
}
242242

243243
/// <inheritdoc/>
@@ -250,7 +250,7 @@ public async Task RecordUnsuccessfulSigninAsync(int id, CancellationToken token
250250

251251
await this.elfhUserRepository.UpdateAsync(id, user);
252252

253-
await this.InvalidateElfhUserCacheAsync(user.Id, user.UserName, token);
253+
// await this.InvalidateElfhUserCacheAsync(user.Id, user.UserName, token);
254254
}
255255

256256
/// <inheritdoc/>
@@ -977,8 +977,6 @@ public async Task<bool> CheckSamePrimaryemailIsPendingToValidate(string secondar
977977
public async Task UpdateMyAccountPersonalDetails(PersonalDetailsViewModel personalDetailsViewModel, int currentUserId)
978978
{
979979
User user = await this.elfhUserRepository.GetByIdAsync(personalDetailsViewModel.UserId);
980-
user.FirstName = personalDetailsViewModel.FirstName;
981-
user.LastName = personalDetailsViewModel.LastName;
982980
user.PreferredName = personalDetailsViewModel.PreferredName;
983981
user.AltEmailAddress = personalDetailsViewModel.SecondaryEmailAddress;
984982

0 commit comments

Comments
 (0)