diff --git a/src/Core/Identity/UserStore.cs b/src/Core/Identity/UserStore.cs index 0f28275f09..b0e6aa8461 100644 --- a/src/Core/Identity/UserStore.cs +++ b/src/Core/Identity/UserStore.cs @@ -19,16 +19,13 @@ namespace Bit.Core.Identity IUserSecurityStampStore { private readonly IUserRepository _userRepository; - private readonly IUserService _userService; private readonly CurrentContext _currentContext; public UserStore( IUserRepository userRepository, - IUserService userService, CurrentContext currentContext) { _userRepository = userRepository; - _userService = userService; _currentContext = currentContext; } @@ -154,7 +151,8 @@ namespace Bit.Core.Identity public async Task UpdateAsync(User user, CancellationToken cancellationToken = default(CancellationToken)) { - await _userService.SaveUserAsync(user); + user.RevisionDate = DateTime.UtcNow; + await _userRepository.ReplaceAsync(user); return IdentityResult.Success; }