diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 338c79ae9..10e2f59e4 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -201,7 +201,7 @@ namespace Bit.Core.Services user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow; user.PrivateKey = privateKey; - if(ciphers.Any()) + if(ciphers.Any() || folders.Any()) { await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders); } @@ -236,7 +236,7 @@ namespace Bit.Core.Services user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow; user.PrivateKey = privateKey; - if(ciphers.Any()) + if(ciphers.Any() || folders.Any()) { await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders); }