1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Missed one other PR comment fix

This commit is contained in:
Chad Scharf 2020-04-01 15:47:10 -04:00
parent 1d04803bd0
commit f6044f0d00

View File

@ -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));