From 5b76c43fb0efc0aa8bba5eece1feb7fe512c88b0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 17 Apr 2017 15:34:07 -0400 Subject: [PATCH] check folders as well --- src/Core/Services/Implementations/UserService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }