From f6044f0d00683de795970b7e9147afedab3a8f5b Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 1 Apr 2020 15:47:10 -0400 Subject: [PATCH] Missed one other PR comment fix --- src/Api/Controllers/CiphersController.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index abcff3c06..ff21749f7 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -206,13 +206,9 @@ namespace Bit.Api.Controllers } var ciphers = await _cipherRepository.GetManyByOrganizationIdAsync(orgIdGuid); - var cipherMatchKeys = ciphers.Select(c => c.Id); var collectionCiphers = await _collectionCipherRepository.GetManyByOrganizationIdAsync(orgIdGuid); - var collectionCiphersGroupDict = collectionCiphers - .Where(c => cipherMatchKeys.Contains(c.CipherId)) - .GroupBy(c => c.CipherId) - .ToDictionary(s => s.Key); + var collectionCiphersGroupDict = collectionCiphers.GroupBy(c => c.CipherId).ToDictionary(s => s.Key); var responses = ciphers.Select(c => new CipherMiniDetailsResponseModel(c, _globalSettings, collectionCiphersGroupDict));