From 8b2186989f60e35c22c7b2d6485d904e34d8a7ad Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 21 Feb 2016 01:24:12 -0500 Subject: [PATCH] resolved circular dependency in user store --- src/Core/Identity/UserStore.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }